Service Control (SC) Syntax help

T

termv

Recieving error:

C:\>sc \\172.29.13.104 start MYSRVC2
[SC] OpenSCManager FAILED 5:

Access is denied.

Have tried using obj=, password=

sc \\172.29.13.104 start MYSRVC2 obj= jimh password= 1pacifiC

Any help GREATLY appreciated!

Jim
 
C

CreateWindow

Hi termv,

Can you run the SC command with credentials that are administrative on the
target machine. That should work just fine.

If this is a once off & not a script - then start a command prompt using
"Runas" and enter your credentials for the remote box.

CreateWindow
http://justpageprobe.com
The FREE Web page utility you always wanted.
Keep your router connected.
Email your IP to where you need it.
Monitor your enterprise Web Servers.
 
Joined
Jul 5, 2010
Messages
1
Reaction score
0
use this...
command:

C:\Windows\system32> sc create svn binpath= "\"C:\Program Files\SlikSvn\bin\svns
erve.exe\" --service --root D:\svnrepository" start= auto displayname= "Subversi
on Server"

result:

[SC] CreateService SUCCESS


it works on windows 7 x64, I run it As Administrator . (right click on start menu, and choose run as administrator)

hope help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top