Thursday, July 03, 2014

Start / Stop a service at remote Windows server

There is an useful Windows command I learn recently which I thought why I did come across this earlier. It helps a lot when it needs to stop a service on an remote app server prior to run a database script.

The command is sc.

Task Command syntax
To stop a Service sc \\{server} stop {service}
To start a Service sc \\{server} start {service}
To restart a Service sc \\{server} restart {service}

No comments:

Post a Comment