Skip to content

CyberMantaRay/PowerShellHoverNet

Repository files navigation

PowerShellHoverNet

Explore: Basics Regex Diagnostics

PowerShell Hover Net – A playground for PowerShell scripts (projects, experiments, & POCs)

Environment

  • PowerShell v7.5.0 (Core)

Tips —

  • pwsh to enter PS v7+/powershell to 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> -ShowWindow abbr. get-help <cmd> -s.

Commands —

  • systeminfo ∙∙∙∙∙ ipconfig ∙∙∙∙∙ hostname ∙∙∙∙∙ help ∙∙∙∙∙ whoami ∙∙∙∙∙ gdr

Variables —

  • $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

Resources —

Other Repos —

About

PowerShell notes, experiements, and POCs

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •