get-itemproperty parameter

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Shane Lindberg Shane Lindberg 1 year, 2 months ago.

  • Author
  • #28685
    Profile photo of Shane Lindberg
    Shane Lindberg

    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
    Profile photo of Don Jones
    Don Jones

    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
    Profile photo of Shane Lindberg
    Shane Lindberg

    Thanks for clearing that up 🙂

You must be logged in to reply to this topic.