Remove Required Parameter

Welcome Forums General PowerShell Q&A Remove Required Parameter

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

 
Keymaster
1 year ago.

  • Author
    Posts
  • #85271

    Participant
    Points: 5
    Rank: Member

    Hi,
    This might be a stupid question, but anyway. I am using a cmdlet that has a required parameter, but this parameter is not actually required and by having to specify the parameter the result of the output will be totally different.

    The latest version of the cmdlet actually removes the requirement, but is there a way i can modify the existing cmdlet and remove the flag?

    Thanks

    TommyQ

  • #85276

    Keymaster
    Points: 1,673
    Helping HandTeam Member
    Rank: Community Hero

    If it's a compiled cmdlet (e.g., in a DLL), then no, you can't.

The topic ‘Remove Required Parameter’ is closed to new replies.