startnet: stage Verify-And-Heal-Staging.ps1 to C:\Enrollment
The live boot.wim startnet did not stage Fetch-StagingPayload.ps1 (rebuilt from a stale source), so the unattend Fetch (Order 4) + Verify-And-Heal (Order 5) steps had no script on disk and never ran - imaging lost payloads with no recovery. Stage Verify-And-Heal-Staging.ps1 directly here (alongside the existing Fetch-StagingPayload copy) so the Order 5 heal runs even if Fetch itself fails to land. Requires re-injecting this startnet.cmd into boot.wim to take effect. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -447,6 +447,9 @@ REM re-pulls the shopfloor-setup tree + preinstall bundle at first logon on a
|
|||||||
REM FRESH mount. The unattend FirstLogonCommands runs it before the PowerShell 7
|
REM FRESH mount. The unattend FirstLogonCommands runs it before the PowerShell 7
|
||||||
REM MSI + Run-ShopfloorSetup. Stage the script + its source coords here.
|
REM MSI + Run-ShopfloorSetup. Stage the script + its source coords here.
|
||||||
robocopy "Y:\shopfloor-setup" "W:\Enrollment" "Fetch-StagingPayload.ps1" /R:1 /W:1 /NFL /NDL /NJH /NJS
|
robocopy "Y:\shopfloor-setup" "W:\Enrollment" "Fetch-StagingPayload.ps1" /R:1 /W:1 /NFL /NDL /NJH /NJS
|
||||||
|
REM Stage the staging self-heal directly too, so the unattend Order 5 heal step
|
||||||
|
REM runs even if Fetch-StagingPayload itself did not land. Small, reliable copy.
|
||||||
|
robocopy "Y:\shopfloor-setup" "W:\Enrollment" "Verify-And-Heal-Staging.ps1" /R:1 /W:1 /NFL /NDL /NJH /NJS
|
||||||
> W:\Enrollment\fetch-source.txt (
|
> W:\Enrollment\fetch-source.txt (
|
||||||
echo \\172.16.9.1\enrollment
|
echo \\172.16.9.1\enrollment
|
||||||
echo pxe-upload
|
echo pxe-upload
|
||||||
|
|||||||
Reference in New Issue
Block a user