I am using sc command to query status of a service running on computer PRODSRV from two computers. It works fine from one, but fails from another. What do I do wrong?
PRODSRV is Windows Server 2003. Computer from which sc works is also Windows Server 2003, the result of sc from it:
sc \\prodsrv query mssqlserver SERVICE_NAME: mssqlserver TYPE : 10 WIN32_OWN_PROCESS STATE : 4 RUNNING (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0
Computer from which sc does not work is Windows Vista and the result is:
sc \\prodsrv query mssqlserver [SC] OpenSCManager FAILED 5: Access is denied.