PowerShell -ErrorAction: Control How Errors Behave ─□✕ March 6, 2026May 5, 2026 PowerShell Tips Editor 4 min read PowerShell -ErrorAction: Control How Errors Behave The -ErrorAction parameter controls what PowerShell does when a command fails. Learn all five values and when to use each in your scripts.