Most used Powershell commands
- Get-Help - get help on a command
- Get-Command - list all available commands on the system
- Get-ChildItem -Path - list contents of folder
- Get-Process (-name) - list all running processes (specific process)
- Get-Service -ComputerName - list all registered process on a local or remote system
- Start/Stop-Service -Name - start or stop a service
- Stop-Process -Name - stop a runnign process (similar to End Task in TaskManager
- Write-Host (-Background/ForegroundColor) - print info to the console (optionally in custom colors)
- New-Item -ItemType - create new item (by default creates a folder). specify ItemType for other items
- Remove-Item - delete item
- Copy-Item (-To/FromSession) - copy item to/from location, included to/from a remote system
- New-PSSession -ComputerName - creates a persistent connection to a local or remote computer.
- Disconnect-PSSession - disconnect from the session
- New-Service - register a new Windows service
- Remove-Service - deregister a Windows service
- Restart-Service - restart a Windows service
- Invoke-Command -ScriptBlock -Session - run commands on a remote computer
- Enable/Disable-PSRemoting - Enable or disable powershell remote commands
- Invoke-WebRequest - perform web requests (similar to cURL in linux)
- Test-NetConnection - test if ports/IPs are accessible (a mix of ping and telnet)
- Get-WmiObject -List -Class Win32* - list available wmi objects