Windows command reference
Get-Service
List Windows service objects and their current status; specific service names can be queried and required/dependent services can also be inspected.
Risk: LowReviewed: 2026-09-17
Get-ServiceWhen to use it
Use before changing a service to confirm the exact service name, current running/stopped state and dependency relationships.
When not to use it
Get-Service is diagnostic by itself. Do not pipe unknown services into Stop-Service, Set-Service or other state-changing commands merely to clear an Event Viewer error.
Primary reference