PowerShell Basics - "Get-Service"


The Get-Service cmdlet provides a list of all of the services that are installed on the target system.

Get all services on the computer:

Get-Service

Get services that begin with a search string:

Get-Service "wmi*"

Display services that include a search string:

Get-Service -Displayname "*network*"

Get services that begin with a search string and an exclusion:

Get-Service -Name "win*" -Exclude "WinRM"

Display services that are currently active:

Get-Service | Where-Object {&_.Status -eq "Running"}

Get the services on a remote computer:

Get-Service -ComputerName "Server02"

No comments

Back to Top