Windows Services

Managing Windows Services with PowerShell

GUI

Launch from Start menu or by typing this at a command/Powershell prompt...

services.msc

Killing an unresponsive service

Find your service name... You can do this by clicking Properties in the Services GUI or by using something based on the examples below...

sc queryex | find "SERVICE_NAME" | find "SQL"


Get-Service -Name *SQL*

Powershell

Find the PID of the service...

sc queryex MSSQLSERVER

KIll the Service...

taskkill /pid 999 /f

Bibliography