PowerShell: Essential Cheat Sheet

Get-Command# Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft*Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *itemRetrieves a list of all commands (native binaries + PowerShell commands) ending in “item”
Get-HelpGet all help topics
Get-Help -Name about_VariablesGet help for a specific about_* topic (aka. man page)
Get-Help -Name Get-CommandGet help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter ModuleGet help for a specific parameter on a specific command

Leave a Reply

Your email address will not be published. Required fields are marked *