Skip to content

Commit 5e555d2

Browse files
committed
(fix) Adds 3010 to ValidExitCodes for WindowsFeatures
If the system is partially or fully through Windows Updates being installed, it can require a reboot at these steps. This _may_ help that situation, but equally there may be failures later due to the WebAdministration module not being loaded - this will be rectified by a restart!
1 parent 5cc3dc2 commit 5e555d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Start-C4bCcmSetup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ process {
100100
# Install prerequisites for CCM
101101
Write-Host "Installing Chocolatey Central Management Prerequisites"
102102
$chocoArgs = @('install', 'IIS-WebServer', "--source='windowsfeatures'", '--no-progress', '-y')
103-
& choco @chocoArgs
103+
& choco @chocoArgs -ValidExitCodes 0, 3010
104104

105105
$chocoArgs = @('install', 'IIS-ApplicationInit', "--source='windowsfeatures'" ,'--no-progress', '-y')
106-
& choco @chocoArgs
106+
& choco @chocoArgs -ValidExitCodes 0, 3010
107107

108108
$chocoArgs = @('install', 'dotnet-aspnetcoremodule-v2', "--version='$($Packages.Where{$_.Name -eq 'dotnet-aspnetcoremodule-v2'}.Version)'", '--no-progress', '--pin', '--pin-reason="Latest version compatible with chocolatey-management-web V 0.12.0"', '-y')
109109
& choco @chocoArgs

0 commit comments

Comments
 (0)