sc.exe

G

gg

I was able to create a service from .exe file only with the bare min. Could
not use any option what soever
eg
sc create mysvcname binpath= mysvcpathname.exe
could not specify type= nor start= nor anything else

I then try to config by
sc config mysvcname start= boot type= interact
and I get
[SC} ChangeServiceConfig Failed 87:

The parameter is incorrect.

Tried
sc config mysvcname start= boot
I got same msg


tried
sc config mysvcname type= interact
I got same msg
and other parameter

please help!
what did I do wrong? I must have misunderstood the syntax described in Xp
help center.
 
W

Wesley Vogel

SC.exe HELP

Start | Run | Paste: hh ntcmds.chm::/sc.htm | Click OK

Using SC.EXE to Develop Windows NT Services
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_scmslite.asp

Run a Program as a Service

How To Create a User-Defined Service
http://support.microsoft.com/?scid=kb;en-us;137890

How To Run Automation Manager as a Windows NT Service
http://support.microsoft.com/default.aspx?scid=kb;en-us;193238

INFO: Invokable TP Written as an Application to Run as a Service
http://support.microsoft.com/default.aspx?scid=kb;en-us;151239

Instrsrv.exe installs and removes system services from Windows NT and
Srvany.exe allows any Windows NT application to run as a service.

Srvany.exe: Applications as Services Utility & Instsrv.exe: Service
Installer are included in...
Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

gg

Thank you for the links. I don't see anything I done that deviate from the
literature described

may be time to download form the w2k3 resource kit to try out Srvany or
Instsrv

By the way the XP pro I was working from local admin has all the critical
updates applied sans SP2. does that make any difference?

Wesley Vogel said:
SC.exe HELP

Start | Run | Paste: hh ntcmds.chm::/sc.htm | Click OK

Using SC.EXE to Develop Windows NT Services
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_scmslite.asp

Run a Program as a Service

How To Create a User-Defined Service
http://support.microsoft.com/?scid=kb;en-us;137890

How To Run Automation Manager as a Windows NT Service
http://support.microsoft.com/default.aspx?scid=kb;en-us;193238

INFO: Invokable TP Written as an Application to Run as a Service
http://support.microsoft.com/default.aspx?scid=kb;en-us;151239

Instrsrv.exe installs and removes system services from Windows NT and
Srvany.exe allows any Windows NT application to run as a service.

Srvany.exe: Applications as Services Utility & Instsrv.exe: Service
Installer are included in...
Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
gg said:
I was able to create a service from .exe file only with the bare min.
Could not use any option what soever
eg
sc create mysvcname binpath= mysvcpathname.exe
could not specify type= nor start= nor anything else

I then try to config by
sc config mysvcname start= boot type= interact
and I get
[SC} ChangeServiceConfig Failed 87:

The parameter is incorrect.

Tried
sc config mysvcname start= boot
I got same msg


tried
sc config mysvcname type= interact
I got same msg
and other parameter

please help!
what did I do wrong? I must have misunderstood the syntax described in
Xp
help center.
 
Joined
Aug 25, 2010
Messages
1
Reaction score
0
I have got the same error but I have found the solution here: http://technet.microsoft.com/en-us/library/cc990290(WS.10).aspx

"interact - Specifies a service that can interact with the desktop, receiving input from users. Interactive services must be run under the LocalSystem account. This type must be used in conjunction with type= own or type= shared (for example, type= interacttype= own). Using type= interact by itself will generate an error."

I have run sc config myservice type= interact type= own with no errors
[SC] ChangeServiceConfig SUCCESS
 

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