Skip to content

Instantly share code, notes, and snippets.

View rpalo's full-sized avatar

Ryan Palo rpalo

View GitHub Profile
PS> Get-Command -noun Job
PS> Get-Help command
# You can also get help by adding the ? parameter
PS> command -?
PS> Get-Command Get-Help | Format-List
# Or, if you're feeling cheeky:
PS> Get-Help Get-Help
PS> Get-Command
PS> Get-Alias
PS> Get-Command Get-Alias | Format-List
PS> "2" + 2
22 # A string
PS> [Int] "2" + 2
4 # An integer. The conversion only applies to the "2"
PS> Get-Process
PS> $env:PATH
PS> Get-ChildItem env:
# And to get to a specific one:
PS> Get-Content env:PATH