Author Posts

August 17, 2015 at 6:44 pm

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?

August 17, 2015 at 7:06 pm

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.

August 17, 2015 at 7:17 pm

Thanks for clearing that up 🙂