Useful Cygwin commands
Service Management
Using net
Start a service
net start "screen-scraper server"
Stop a service
net stop "screen-scraper server"
Using sc
List all running services
List all inactive services
sc query type= service state= inactive
List all services
sc query type= service state= all
Start a service
sc start "screen-scraper server"
Stop a service
sc stop "screen-scraper server"
Status of a service
sc query "screen-scraper server"
Run command on a remote machine
sc \\user@remotehost start "name of service"