Author Posts

March 23, 2017 at 4:17 am

It appears built in cmdlets inherit the ErrorAction passed to the containing function. I was hoping to find docs confirming this but was not successful.

Is this behavior by design?

March 23, 2017 at 9:42 am

I've seen this behavior with all common parameters not only -erroraction. See this 2006 post by Jeff Snover 😉

March 23, 2017 at 10:36 am

Thanks for the confirmation Sam.