Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Get-Service

Get-Service - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Short description
Gets the services on a local or remote computer.

Get-Service [[-Name] <string[]>] [-ComputerName <string[]>] [-DependentServices] [-Exclude <string[]>] [-Include <s
tring[]>] [-RequiredServices] [<CommonParameters>]

Get-Service -DisplayName <string[]> [-ComputerName <string[]>] [-DependentServices] [-Exclude <string[]>] [-Include
 <string[]>] [-RequiredServices] [<CommonParameters>]

Get-Service [-InputObject <ServiceController[]>] [-ComputerName <string[]>] [-DependentServices] [-Exclude <string[
]>] [-Include <string[]>] [-RequiredServices] [<CommonParameters>]

The Get-Service cmdlet gets objects that represent the services on a local computer or on a remote computer, includ
ing running and stopped services. 

You can direct Get-Service to get only particular services by specifying the service name or display name of the se
rvices, or you can pipe service objects to Get-Service.