Skip to content

Commit 4776ba4

Browse files
committed
Updated cloudbase-init install to wait for msiexec to finish.
1 parent 3d98c23 commit 4776ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UpdateAndSysprep.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ else
99
{
1010
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name Unattend*
1111
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoLogonCount
12-
msiexec /i C:\Windows\Temp\CloudbaseInitSetup.msi /qn /l*v C:\Windows\Temp\CloudbaseInitSetup_Beta.log
12+
Start-Process -FilePath msiexec -ArgumentList "/i C:\Windows\Temp\CloudbaseInitSetup.msi /qn /l*v C:\Windows\Temp\CloudbaseInitSetup_Beta.log" -Wait
1313
C:\Windows\System32\Sysprep\Sysprep.exe /generalize /oobe /shutdown /unattend:C:\Windows\Temp\Unattend.xml
1414
}

0 commit comments

Comments
 (0)