fix detecting safe mode with networking
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Are we running in Safe Mode?
|
||||
Switch ( ($Env:SAFEBOOT_OPTIONS).ToUpper() -eq "NETWORK" ) {
|
||||
# Are we running in Safe Mode with Networking?
|
||||
Try { If ( ($Env:SAFEBOOT_OPTIONS).ToUpper() -eq "NETWORK" ) { $InSafeNetMode = $true } Else { $InSafeNetMode = $false } }
|
||||
Catch { $InSafeNetMode = $false }
|
||||
|
||||
Switch ( $InSafeNetMode ) {
|
||||
|
||||
# We're in Safe Mode
|
||||
$true {
|
||||
|
||||
Reference in New Issue
Block a user