Get-Service
List Windows services
Get-Service | Where-Object Status -eq 'Running'
- Works on
- Windows
- PowerShell
- 5.1 and later
- Reference
- Microsoft Learn: Get-Service
Windows only. Lists services. Status is Running or Stopped. Some service names are not the display names. Use -DisplayName '*print*' when you do not know the short name.
Try this
Get-Service -Name Spooler
Coming from another shell
| Shell | What you might type |
|---|---|
| bash / zsh | systemctl list-units --type=service --state=running |
| cmd.exe | sc query |
More in From bash and From cmd.