Pages

Wednesday, July 20, 2011

Controlling a Windows service From Linux

To list all services in remote windows box.

# net rpc service list -I IPADDRESS -U USERNAME%PASSWORD


To start/stop services in a remote windows box.

# net rpc service stop/start SERVICENAME -I IPADDRESS -U USERNAME%PASSWORD