Tayyip EserIT KNOWLEDGE HUB
TRin
Back to archive

Note · Aug 25, 2026

Quick Windows service check

Checking service state, startup mode, process identity and controlled restart.

WindowsPowerShellService

Short answer Check service state, startup mode and process identity, then restart only when appropriate.

?

When to use it

When an application service is stopped or fails at startup.

01

Inspect service

Get-CimInstance Win32_Service -Filter "Name='<SERVICE_NAME>'" | Select-Object Name,State,StartMode,StartName,ProcessId,ExitCode
Note

Use the service name, not display name.

02

Controlled restart

Restart-Service -Name "<SERVICE_NAME>" -Force -PassThru
Get-Service -Name "<SERVICE_NAME>"
Note

Assess impact first.

!

Caution

Do not restart production, database or domain-controller services without dependency checks.