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
. PS C:\> get-service
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
PS C:\> get-service | where-object name -match sql
PS C:\> get-service *sql*
get-service
. It needs to be explicitly requested with the select-object
cmdLet: PS C:\> get-service *sql* | select-object status, name, starttype
get-service
is one of the cmdLets with the -computerName
parameter.