plugins/guests/windows/scripts/reboot_detect.ps1 in vagrant-unbundled-2.0.0.1 vs plugins/guests/windows/scripts/reboot_detect.ps1 in vagrant-unbundled-2.0.1.0
- old
+ new
@@ -30,9 +30,14 @@
if ($LASTEXITCODE -eq 1190) {
# reboot is already pending
exit 2
}
+ if ($LASTEXITCODE -eq 1115) {
+ # A system shutdown is in progress
+ exit 2
+ }
+
# Remove the pending reboot we just created above
if ($LASTEXITCODE -eq 0) {
. shutdown.exe -a
}
}