Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:


The error I get when I attempt to stop the service is as follows:

[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.

share|improve this question
Can you run those commands if you login locally on the machine? Any errors in the event log on the remote server? –  Nixphoe Apr 12 '11 at 16:25
Yes, running the commands locally on the machine works fine. I have not seen anything in event viewer about this issue. –  Nick Apr 12 '11 at 16:47
Can you run that same script logged in to a different server on your test domain? –  Nixphoe Apr 12 '11 at 17:23
Nixphoe, I am able to start and stop the services remotely from a different user on the same domain. I used the same Server 2003 server I mentioned in my original description where I was able to start and stop services from my local machine. Is there any different configuration I need to do in Server 2008 to mimic the permissions in 2003? –  Nick Apr 13 '11 at 13:59
I just tested this from a windows 2003 server to a windows 2008 server and it worked without any issue. I think your issue has to do with the cross domain environment. That was the main purpose of trying it from another server on your test domain. –  Nixphoe Apr 13 '11 at 14:31
show 1 more comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.