ProgrammingWindows

Poking Around Services Using Commands

Important Note! These commands for Windows Services work if you run Command Prompt as Administrator.

List All Services

SC QUERY state=all > "C:\Temp\Services.txt"

This will drop a text file (because you’re likely to have more information than your command buffer) into the temp folder for your perusal.

Start / Stop a Service

Start a service…

SC START YourServiceName

Stop a service…

SC STOP YourServiceName

Delete a Service

This deletes the service…

SC DELETE YourServiceName