Learn Windows PowerShell Basic Commands
Open PowerShell in Windows
System Information Commands
Get-Process
- Lists running processes.
- Example:
Get-Process
Stop-Process
- Stops a running process.
- Example:
Stop-Process -Name notepad
Get-Service
- Lists all services on the system.
- Example:
Get-Service
Start-Service
- Starts a service.
- Example:
Start-Service -Name Spooler
Stop-Service
- Stops a service.
- Example:
Stop-Service -Name Spooler
Get-History
- Displays a history of commands you've run in the session.
Get-Date
- Displays the current date and time.
- Example:
Get-Date
0 Comments