PowerShell - Error Handling
Which of the following is the correct way to make a non-terminating error behave like a terminating error in PowerShell?
-ErrorAction parameter controls how errors behave; Stop makes non-terminating errors act as terminating.-ErrorAction Stop forces the error to stop the script, unlike Continue or SilentlyContinue which allow continuation.-ErrorAction Stop -> Option A-ErrorAction Stop makes errors terminate [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions