Windows XP service control sc

From richud.com
Jump to: navigation, search

sc

One of the most useful windows command line tools. It is a bit like a pimped out 'net'

sc one liners

Remeber there is (oddly) always a space after the ='s sign. [Full docs for sc are here]

list of running services

sc query > serviceslist.txt

all services

sc query type= service state= all > allserviceslist.txt

active drivers

sc query type= driver

all drivers

sc query state= all

kernel drivers

sc query type= kernel