sc query serviceName command will give the running status of specified service on local computer.
Also sc \\192.168.100.112 query serviceName will give the running status of specified service on remote computer whose ip address is 192.168.100.112.
But when I used sc \\192.168.100.112 query serviceName, i am getting something like
[SC] OpenSCManager FAILED 5:
Access is denied.
Can anyone throw some light on this?
Are you running this command under a domain admin account? It's a must for this to succeed.. Also notice that in W8K service names are case sensitive.