PowerShell: Check Windows Service Status

Need to check whether a Windows service is running, stopped, or in another state - before restarting it, troubleshooting an issue, or confirming a startup task completed? This one-liner pulls the status directly from the system.

Prerequisites:

  • Privileges: Run as Administrator
  • Module: Built-in, no import needed

Quick Command:

Get-Service YourServiceName

Example Output:

Status   Name               DisplayName
------   ----               -----------
Running  YourServiceName    Your Service Display Name
📦
Want all of them at once?
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

How It Works:

  • Get-Service queries the specified service and returns its current state by default - no extra parameters needed, Status is already part of the standard output.
  • Replace YourServiceName with the service's actual Name property.
  • Status shows values like Running, Stopped, Paused, or StartPending, telling you exactly what state the service is in right now.

Pro Tip:

If you're not sure of a service's exact name, search for it first:

Get-Service *keyword*