mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Add 30 second delay to allow for Windows Security Platform to install in Update-Defender.ps1
This commit is contained in:
@@ -5303,6 +5303,11 @@ if ($InstallApps) {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Add 30 second delay to allow for Windows Security Platform to install
|
||||||
|
# I suspect this is related to AppxSVC not being immediately ready when booting to audit mode
|
||||||
|
# Long-term solution would be the check for AppxSVC being started, but for now the 30 second sleep seems to work consistently
|
||||||
|
$installDefenderCommand = "Start-Sleep -Seconds 30`r`n"
|
||||||
|
|
||||||
# Download each update
|
# Download each update
|
||||||
foreach ($update in $defenderUpdates) {
|
foreach ($update in $defenderUpdates) {
|
||||||
WriteLog "Searching for $($update.Name) from Microsoft Update Catalog and saving to $DefenderPath"
|
WriteLog "Searching for $($update.Name) from Microsoft Update Catalog and saving to $DefenderPath"
|
||||||
|
|||||||
Reference in New Issue
Block a user