I am writing a script that periodically checks that certain services are running on remote workstations. I have a hell of a time when the command "SC \ workst1 query" runs from one test machine to another. Both machines are running XP pro SP3. None of them are part of the domain. Both are in the same workgroup, and the administrator accounts have the same passwords.
I continue to receive the message "[SC] OpenSCManager FAILED 5: Access is denied" from any workstation to another. I tried using elevated privileges for both. Windows Firewall software is disabled. There are no messages in the security event logs. When (as an administrator) I try to go to "Computer Management" → "connect to another computer" and get access to the remote services that I get "Error 5 Access is denied."
I can successfully set the file system share between the two machines, and "net use \ workst1 \ IPC $ / user: Administrator" succeeds, but the SC request still fails. I use IP addresses, not hostnames in these commands, but this does not help. I do not know what else to try. Thanks for the help.
cmd windows-xp permissions mmc
Ralph Garou Nov 01 '13 at 15:56 2013-11-01 15:56
source share