New-Object ignores the -ErrorAction common parameter #8580
Labels
Issue-Discussion
the issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif
Resolution-Answered
The question is answered.
WG-Cmdlets-Utility
cmdlets in the Microsoft.PowerShell.Utility module
Steps to reproduce
Expected behavior
A quiet no-op.
Actual behavior
That is,
-ErrorAction Ignore
was ignored.Note that, by contrast, setting
$ErrorActionPreference
is respected.The text was updated successfully, but these errors were encountered: