Service Control (SC) Syntax help

  • Thread starter Thread starter termv
  • Start date Start date
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
 
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.
 
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
 
Back
Top