diff --git a/Remove-AllESETProducts.ps1 b/Remove-AllESETProducts.ps1 index 6050739..e04d6aa 100644 --- a/Remove-AllESETProducts.ps1 +++ b/Remove-AllESETProducts.ps1 @@ -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 {