11---
22description : Describes the parameters that can be used with any cmdlet.
33Locale : en-US
4- ms.date : 01/18 /2026
4+ ms.date : 04/02 /2026
55no-loc : [Confirm, Debug, ErrorAction, ErrorVariable, InformationAction, InformationVariable, OutBuffer, OutVariable, PipelineVariable, ProgressAction, Verbose, WarningAction, WarningVariable, WhatIf]
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-5.1&WT.mc_id=ps-gethelp
77schema : 2.0.0
@@ -109,14 +109,13 @@ the display of debugging messages when `$DebugPreference` isn't
109109# ## -ErrorAction
110110
111111Determines how the cmdlet responds to a non-terminating error from the command.
112- This parameter works only when the command generates a non-terminating error,
113- such as those from the `Write-Error` cmdlet.
112+ This parameter overrides the value of the `$ErrorActionPreference` variable for
113+ non-terminating errors generated by the command or the `Write-Error` cmdlet.
114114
115115` ` ` yaml
116116Type: ActionPreference
117117Aliases: ea
118- Accepted values: Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
119-
118+ Accepted values: Break, Suspend, Ignore, Inquire, Continue, Stop, SilentlyContinue
120119Required: False
121120Position: Named
122121Default value: Depends on preference variable
@@ -129,9 +128,12 @@ variable for the current command. Because the default value of the
129128` $ErrorActionPreference` variable is `Continue`, error messages are displayed
130129and execution continues unless you use the `ErrorAction` parameter.
131130
132- The `ErrorAction` parameter has no effect on terminating errors (such as
133- missing data, parameters that aren't valid, or insufficient permissions) that
134- prevent a command from completing successfully.
131+ The `-ErrorAction` parameter doesn't prevent statement-terminating errors
132+ (such as missing data, parameters that aren't valid, or insufficient
133+ permissions) from stopping the current statement. However, when set to `Stop`,
134+ it escalates non-terminating errors to script-terminating errors, making them
135+ catchable by `try/catch`. For more information about error categories, see
136+ [about_Error_Handling][15].
135137
136138- ` -ErrorAction:Break` Enters the debugger when an error occurs or an exception
137139 is raised.
@@ -829,6 +831,7 @@ Mode LastWriteTime Length Name
829831
830832<!-- Using backtick on cmdlet names to avoid localization -->
831833- [about_Preference_Variables][03]
834+ - [about_Error_Handling][15]
832835- [`Write-Debug`][11]
833836- [`Write-Error`][12]
834837- [`Write-Verbose`][13]
@@ -844,4 +847,5 @@ Mode LastWriteTime Length Name
844847[12] : xref:Microsoft.PowerShell.Utility.Write-Error
845848[13] : xref:Microsoft.PowerShell.Utility.Write-Verbose
846849[14] : xref:Microsoft.PowerShell.Utility.Write-Warning
850+ [15] : about_Error_Handling.md
847851
0 commit comments