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