If a bay is imaged with the 9999 placeholder (tech leaves the WinPE prompt blank or types 9999), the lockdown+auto-login chain ends up at the ShopFloor user with no real machine number. We had Check-MachineNumber.ps1 written - InputBox + Update-MachineNumber pulls per-machine NTLARS .reg + udc_settings_<N>.json from the SFLD share - but it only got registered when a tech manually ran Configure-PC + toggled item 6. Fresh 9999 bays never got the prompt, leaving the bay stuck on placeholder values until someone noticed. New Register-CheckMachineNumberTask.ps1 auto-registers the logon task at imaging time. Gated on C:\Enrollment\machine-number.txt == 9999; bays imaged with a real number never get the task (and any stale task from a prior 9999-imaging on the same disk is cleaned up). Wired into Run-ShopfloorSetup.ps1 right after the S: drive logon mapper register. Skipped for self-contained types (display kiosks have no machine number). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
22 KiB
22 KiB