SC command examples
To run this on remote servers sc \\server <command>
Get status of a service
sc query spooler
Get configuration information of a service
sc qc spooler
Stop a service
sc stop spooler
Start a service
sc start spooler
Get startup account
sc qc spooler
Change start type to Disabled
Note: You might need a space after the equal sign on some computers.
sc config spooler start=disabled
Change start type to Manual
sc config spooler start=demand
Change start type to Automatic
sc config spooler start=auto
Get DisplayName of a service
sc GetDisplayName spooler
Get ServiceName of a service
sc GetKeyName "Print Spooler"
Comments
Post a Comment