Skip to content

Instantly share code, notes, and snippets.

View gbargsley's full-sized avatar

Garry Bargsley gbargsley

View GitHub Profile
@gbargsley
gbargsley / cheatsheet.ps1
Created February 13, 2019 16:24 — forked from pcgeek86/cheatsheet.ps1
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
###################################################
# Flow Control Statements