get-itemproperty parameter

Welcome Forums General PowerShell Q&A get-itemproperty parameter

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

3 years, 4 months ago.

  • Author
  • #28685

    Points: 28
    Rank: Member

    I just started reading chapter 3 in "Powershell a month of lunches". It is doing a wonderful job of explaining get-help. Thanks Don, I am enjoying it!

    I decided to type "get-help set-itempropery". I noticed it does not have a parameter [-type] listed. The reason I pointed that out was I recently used the following command

    set-itemproperty $path $name $value -type dword

    As far as I can tell [-type] is not a listed parameter according to help, but I used it without error. Does that mean get-help is incomplete or did [-type] actually do nothing?

  • #28686

    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    That's a fun thing called dynamic parameters. That one is only available in a registry drive, and because help is static, it doesn't show it.

  • #28687

    Points: 28
    Rank: Member

    Thanks for clearing that up 🙂

The topic ‘get-itemproperty parameter’ is closed to new replies.