diff --git a/playbook/shopfloor-setup/Run-ShopfloorSetup.ps1 b/playbook/shopfloor-setup/Run-ShopfloorSetup.ps1 index cca8216..9f96fcb 100644 --- a/playbook/shopfloor-setup/Run-ShopfloorSetup.ps1 +++ b/playbook/shopfloor-setup/Run-ShopfloorSetup.ps1 @@ -471,7 +471,7 @@ if (Test-Path -LiteralPath $enrollScript) { Write-Host "=== Running enrollment (PPKG install) ===" Write-Host "NOTE: PPKG schedules a near-immediate reboot. We will cancel" Write-Host " it and hand off to Monitor-IntuneProgress -PostPpkg, which" - Write-Host " runs a 180s settle (giving MDM time to push baseline" + Write-Host " runs a 60s settle (giving MDM time to push baseline" Write-Host " policy) and then performs a clean reboot." try { Stop-Transcript | Out-Null } catch {} & $enrollScript diff --git a/playbook/shopfloor-setup/Shopfloor/lib/Monitor-IntuneProgress.ps1 b/playbook/shopfloor-setup/Shopfloor/lib/Monitor-IntuneProgress.ps1 index 731d43a..dd42577 100644 --- a/playbook/shopfloor-setup/Shopfloor/lib/Monitor-IntuneProgress.ps1 +++ b/playbook/shopfloor-setup/Shopfloor/lib/Monitor-IntuneProgress.ps1 @@ -80,11 +80,11 @@ param( # The persistent @logon sync_intune task takes over after reboot. [switch]$PostPpkg, # -PostPpkgSettleSec: how long to wait before the clean reboot when - # in -PostPpkg mode. 180s empirically gives MDM enough time to push + # in -PostPpkg mode. 60s empirically gives MDM enough time to push # the baseline policy (4 -> ~30 PolicyManager subkeys) so when techs # see sync_intune resume after reboot, the readiness signals are # already meaningful instead of "policy still pulling". - [int]$PostPpkgSettleSec = 180 + [int]$PostPpkgSettleSec = 60 ) # ============================================================================