I am having issues using SC to start or stop services remotely on Server 2008 via command line. The server I am working with is on our test domain while I am working from my local machine on the company domain.
First I log in to the server with the following command:
NET USE \\SERVER\IPC$ PASSWORD /user:DomainOrServer\Administrator
Logging in with this command is successful
Next I attempt to stop the service:
SC \\SERVER STOP SERVICE
The error I get when I attempt to stop the service is as follows:
C:\Users\me>SC \\SERVER STOP SERVICE [SC] OpenService FAILED 5:
Access is denied.
UAC is disabled. I do not have any problems running these commands against a Server 2003 machine that stops the same service.
Thanks in advance for any assistance.