Explore: Basics Regex Diagnostics
PowerShell Hover Net – A playground for PowerShell scripts (projects, experiments, & POCs)
- PowerShell v7.5.0 (Core)
pwshto enter PS v7+/powershellto enter PS v5.1- PowerShell is generally case-insensitive. Can lead to unexpected behavior.
- Parameters can be abbreviated if no conflict, e.g.
Get-Help <cmd> -ShowWindowabbr.get-help <cmd> -s.
- systeminfo ∙∙∙∙∙ ipconfig ∙∙∙∙∙ hostname ∙∙∙∙∙ help ∙∙∙∙∙ whoami ∙∙∙∙∙ gdr
- $PSVersionTable ∙∙∙∙∙∙∙ $env:PATH ∙∙∙∙∙∙∙ $PSHome ∙∙∙∙∙∙∙ $HOME ∙∙∙∙∙∙∙ $PROFILE
$_= $PSItem (current obj. in pipeline)- Last command:
$?(exec. status) ∙∙∙∙∙∙∙$^(1st token) ∙∙∙∙∙∙∙$$(last token) - $NULL ∙∙∙∙∙∙∙ $TRUE ∙∙∙∙∙∙∙ $FALSE
- $ERROR ∙∙∙∙∙∙∙ $ForEach ∙∙∙∙∙∙∙ $MATCHES ∙∙∙∙∙∙∙ $ARGS