fix detecting safe mode with networking

This commit is contained in:
2024-04-23 11:36:37 -04:00
parent 33960214fd
commit 4cec14c893
+5 -2
View File
@@ -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 {