Powershell Basic
Why Powershell?
Powershell Executable
(64-bit) C:\windows\system32\WindowsPowerShell
(32-bit) C:\windows\SysWOW64\WindowsPowerShellC:\windows\system32\WindowsPowerShell[Environment]::Is64BitProcessFucking Basic
Run as Administrator
Call Help
Use a Different Version
Launch without Profiles
Execution Policy
Run in background
Powershell Commands from CMD
Base64 encoded Commands
Man in PS
List Options Available
Output Format
Suppress Error Message
Cmdlets (Command-Lets)
Get-Process
Get-ChildItem
Get-WmiObject
Export-CSV
Accessing Registry
Get-Content (cat)
Select-String: Grep
Get-Service
Modules
Get-Modules
Import-Module
Scripts
Example script - cat.ps1
Looping
Loop Statement (xxx) and Loop Body {xxxxx}
(xxx) and Loop Body {xxxxx}Where-Object - Filtering Result
Mini Port Scanner
Objects
Get-Member
.NET Objects
WebClient
Last updated