Posts

Showing posts with the label remote control

How to: Remotely start/stop/monitor windows services

When working with a lot of different servers, to monitor and control the windows services on those machines can be a real pain. Because you either need to RDP to the machine or open a remote services session. In order to automate the tedious hard labour and achive this in bulk. I used the remote command 'SC' to access NT Service Contoller provided by MS. The syntax is as simple as the following: for monitoring service: sc <server-name> query <spooler or any service name> for stopping service: sc <server-name> stop <spooler or any service name> for starting service: sc <server-name> start <spooler or any service name> List all the servers and put them in .bat file, that way would save you a great deal of time repeating yourselves. FYI, the SC command details are listed below:     The option <server> has the form "\\ServerName"     Further help on commands can be obtained by typing: "sc [command]"  ...