Imaging: defer bulk staging to first-logon Fetch (fresh mount) - Phase 1
WinPE maps Y: early then idles for minutes during the WIM apply; samba deadtime drops the idle session, so the WinPE staging copies failed (bay left with only site-config.json). Add Fetch-StagingPayload.ps1, run from the unattend FirstLogonCommands at first logon on a FRESH share mount (full Windows, no prior idle), to pull the shopfloor-setup tree + preinstall bundle. Detailed per-item log (exit code, counts, timing, mount retries) at C:\Logs\Fetch\ - the old WinPE staging was opaque. - Fetch runs as Order 4, BEFORE wait-for-internet.ps1 (Order 5) which switches the bay to the production network and off the imaging LAN. So Fetch still reaches \172.16.9.1\enrollment. - WinPE bulk staging kept as best-effort fail-fast fallback (Phase 1); the post-boot Fetch is now the authoritative path. Remove the WinPE bulk once validated. Heavy per-type payloads (CMM/Keyence/WaxTrace) stay in WinPE for now - Phase 2. - startnet stages Fetch-StagingPayload.ps1 + writes fetch-source.txt (UNC/user/pass) for the post-boot mount. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -441,6 +441,17 @@ set /p CMMDODA=<W:\Enrollment\cmm\doda.txt
|
||||
if /i "%CMMDODA%"=="yes" echo doda> W:\Enrollment\pc-subtype.txt
|
||||
:cmm_id_done
|
||||
robocopy "Y:\shopfloor-setup" "W:\Enrollment" "Run-ShopfloorSetup.ps1" /R:1 /W:1 /NFL /NDL /NJH /NJS
|
||||
REM Post-boot bulk re-fetch. WinPE staging below is best-effort (it can fail if
|
||||
REM the Y: mount went idle-dead during the WIM apply); Fetch-StagingPayload.ps1
|
||||
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 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
|
||||
> W:\Enrollment\fetch-source.txt (
|
||||
echo \\172.16.9.1\enrollment
|
||||
echo pxe-upload
|
||||
echo pxe
|
||||
)
|
||||
REM --- Always copy Shopfloor baseline scripts ---
|
||||
mkdir W:\Enrollment\shopfloor-setup 2>NUL
|
||||
robocopy "Y:\shopfloor-setup" "W:\Enrollment\shopfloor-setup" "backup_lockdown.bat" /R:1 /W:1 /NFL /NDL /NJH /NJS
|
||||
|
||||
Reference in New Issue
Block a user