Interact with Windows services using the
sc command with administrative privileges.
Use any of the commands below on a remote system through an administrative SMB session by prepending
\[targetIP] right after
sc \[targetIP] query
List all running services:
sc query sc query | find /i "service_name"
List all services:
sc query state= all sc query state= all | find /i "service_name"
Show service detail:
sc qc [service_name]
Start and stop a service:
sc start [service_name] sc stop [service_name]
If the service has a
disabled in the output of
sc qc [service_name], you cannot start it until you first change it to a start type of
sc config [service_name] start= demand