Today’s One-Liner Wednesday is one that is overlooked by many, but is very useful. It’s one of the basics that everyone should know or use. I’ll show you a few different options of it as a reminder for some and new knowledge for others.
Get-Help ModuleName -Online
This will give you a fully searchable web browser window for the help documentation of that module. This has helped me many times instead of trying to use the console window then all of the code you were working on is up above.
Get-Help ModuleName -ShowWindow
Does the same but opens it up in a different window that is searchable as well except it doesn’t support provider help.
Get-Help ModuleName -Examples
You would run this if you just wanted to see the examples for this module, and didn’t want to see anything else. You can do this for each of the help parameters as well if you just want one section of the help.
Get-Help -Name sql
This will search all the help articles and return any with the word SQL in it. You can use wildcards in this as well.
Get-Help about_*
This is another great one, this allows you to see all available conceptual articles, then you can pick which one you want. You can use wild cards on this as well to filter the results to more targeted information. Did you know there is an article for automatedlab_office ? Check it out and see!
Hope you found this helpful and be sure to check more out on get-help below as there is so much more it can do.
Microsoft Learn:
Get-Help