PUBLISH 12-Sep-2018 LAST UPDATE: 12-Sep-2018
Some interesting commands in PowerShell
Commands | Description |
---|---|
stop-transcript |
Stops recording |
get-content file |
displays file contents |
get-help command -examples |
Shows examples of command |
get-command ' string ' |
Displays services (stopservice,start-service) |
get-wmiobject -class win32 service |
Displays services, but takes alternate credentials |
$PSVesionTable |
Display powershell version |
powershell.exe -version 2.0 |
Run powershell 2.0 from 3.0 |
get-service | measure-object |
Returns # of services |
get-psdrive |
Returns list of PSDrives |
get-process | select -expandproperty name |
Returns only names |
get-help ' -parameter credential |
Cmdlets that take creds |
get-wmiobject -list -'network |
Available WMI network cmds |
(Net.DNS]: :GetHostEntry(" ip ") |
DNS Lookup |
CONTACT US