Terminal Dojo
Help العربية Sign inGet started

Command library / Get-Service

Get-Service

PowerShellDraft — pending expert review3 practice missions

List Windows services and their status

Returns Windows services as objects, each with a Status (Running/Stopped), Name and DisplayName. The short internal Name binds positionally; DisplayName supports wildcards for searching by the friendly name you'd see in services.msc.

Practice Get-Service

Usage

Get-Service [[-Name] <string>] [-DisplayName <string>]

Options and flags

Examples

Common mistakes

Get-Service -DisplayName SQL Get-Service -DisplayName "*SQL*"

Without wildcards, -DisplayName must match the ENTIRE display name exactly — add * on both sides to search for a word inside the name.

Related commands

get-process