Powershell: Difference between revisions
Jump to navigation
Jump to search
(→Links) |
|||
Line 5: | Line 5: | ||
<source lang="powershell"> |
<source lang="powershell"> |
||
# Documentation |
# Documentation |
||
Update-Help # Update help system - |
Update-Help # Update help system - to run as Administrator |
||
help Test-Path # Get help on a command |
|||
Get-Command about_* # DOES NOT WORK |
|||
Get-Command -Verb Add |
|||
Get-Alias ps # ... Get-Process |
|||
Get-Alias -Definition Get-Process # ... ps |
|||
ps | Get-Member |
|||
# Frequent aliases |
|||
Get-Command # alias: gcm |
|||
Get-Process # alias: ps |
|||
Get-Help # alias: help |
|||
Get-Alias # alias: alias, gal |
|||
Get-Member # alias: gm |
|||
</source> |
</source> |
||
Revision as of 11:21, 22 February 2022
Links
- Learn powershell in Y minutes — A MUST-READ to learn rapidly.
Reference
# Documentation
Update-Help # Update help system - to run as Administrator
help Test-Path # Get help on a command
Get-Command about_* # DOES NOT WORK
Get-Command -Verb Add
Get-Alias ps # ... Get-Process
Get-Alias -Definition Get-Process # ... ps
ps | Get-Member
# Frequent aliases
Get-Command # alias: gcm
Get-Process # alias: ps
Get-Help # alias: help
Get-Alias # alias: alias, gal
Get-Member # alias: gm
Tips
Measure execution time of a command
Measure-Command { dir }
Measure-Command { dir | Out-default} # To get output
Measure-Command { choco list }