Install-ProvisioningPackage is async — it queues the provisioning engine and returns immediately. The actual BPRT app installs (Chrome, Office, Tanium, CyberArk, etc.) run in the background. Without waiting, the PPKG reboot fires while installs are still in progress, leaving apps partially installed. Fix: poll for C:\Logs\BPRT\Remove Staging Locations\Log.txt — the last BPRT step. When that file exists, all provisioning steps have completed. Polls every 10 seconds for up to 15 minutes (Office install can be slow). Progress logged every 30 seconds showing which steps have finished. If the timeout fires (15 min), logs a warning and proceeds — the SYSTEM logon task from 06-OrganizeDesktop.ps1 provides self-healing on the next boot for anything that was incomplete. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4.9 KiB
Executable File
4.9 KiB
Executable File