ErrorAction in advanced functions

Welcome Forums General PowerShell Q&A ErrorAction in advanced functions

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 year, 9 months ago.

  • Author
    Posts
  • #67017

    Participant
    Points: 1
    Rank: Member

    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?

  • #67032

    Participant
    Points: 91
    Rank: Member

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

    • #67044

      Participant
      Points: 1
      Rank: Member

      Thanks for the confirmation Sam.

The topic ‘ErrorAction in advanced functions’ is closed to new replies.