Search notes:

PowerShell cmdLet Get-Service

get-service returns a list of installed services on a system, regardless if the service is running or stopped. The objects in this list have the .NET type System.ServiceProcess.ServiceController.

Show installed services

The simple invocation of the get-service cmdLet allows to show installed services in PowerShell:
PS C:\> get-service

Show running services only:

By piping the result of get-service through where-object, the returned set of services can be limited to a specific criteria, for example only running services:
PS C:\> get-service | where-object status -eq    running

Show services whose name matches a specific text

Another often seen criteria is a services name
PS C:\> get-service | where-object name   -match sql
Same thing, but shorter:
PS C:\> get-service *sql*

Show startup type as well

By default, PowerShell does not include the serivces's startup type with get-service. It needs to be explicitly requested with the select-object cmdLet:
PS C:\> get-service *sql* | select-object status, name, starttype

See also

get-service is one of the cmdLets with the -computerName parameter.
Powershell command noun: service

Index