Previously it was setting -ErrorAction to SilentlyContinue which on failure will still put the error onto $Error and this can confuse users who check on $Error to see if any error occurred. Since the intent is to ignore the error, the right value to use is Ignore.
PR Summary
Previously it was setting
-ErrorAction
toSilentlyContinue
which on failure will still put the error onto$Error
and this can confuse users who check on$Error
to see if any error occurred. Since the intent is to ignore the error, the right value to use isIgnore
.