Reorder script execution list to ensure Install-Office.ps1 runs after Update-Defender.ps1 and remove unnecessary pause

This commit is contained in:
rbalsleyMSFT
2025-05-29 19:33:11 -07:00
parent 4ffdba8e41
commit e1b1dfafac
@@ -30,8 +30,8 @@ $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
# Define the list of scripts to run, order doesn't matter - if you have a custom script, add it here # Define the list of scripts to run, order doesn't matter - if you have a custom script, add it here
$scriptList = @( $scriptList = @(
"Install-Office.ps1",
"Update-Defender.ps1", "Update-Defender.ps1",
"Install-Office.ps1",
"Update-MSRT.ps1", "Update-MSRT.ps1",
"Update-OneDrive.ps1", "Update-OneDrive.ps1",
"Update-Edge.ps1", "Update-Edge.ps1",
@@ -48,7 +48,6 @@ foreach ($script in $scriptList) {
Write-Host " Running script: $script " -ForegroundColor Yellow Write-Host " Running script: $script " -ForegroundColor Yellow
Write-Host "---------------------------------------------------" -ForegroundColor Yellow Write-Host "---------------------------------------------------" -ForegroundColor Yellow
# Run script and wait for it to finish # Run script and wait for it to finish
# pause
& $scriptFile & $scriptFile
} }
} }