better reboot
This commit is contained in:
@@ -29,5 +29,4 @@ Catch { Write-Error "ERROR: could not configure reboot into safe mode with netwo
|
|||||||
|
|
||||||
# Reboot into Safe Mode with Networking
|
# Reboot into Safe Mode with Networking
|
||||||
Write-Output "Rebooting into Safe Mode with Networking"
|
Write-Output "Rebooting into Safe Mode with Networking"
|
||||||
Try { Start-Sleep -Seconds 5 ; Restart-Computer -Force -ErrorAction Stop}
|
& "${Env:SystemRoot}\System32\shutdown.exe" -r -f -t 5
|
||||||
Catch { Write-Error "ERROR: could not reboot into safe mode with networking" ; Return }
|
|
||||||
Reference in New Issue
Block a user