Re: start service with parameters on restart



tried it, no joy.

e.

"Pegasus (MVP)" wrote:

Plug the parameter into ImagePath field via regedit, then start the service.
Example:

ImagePath="C:\Program Files\RealVNC\WinVNC\winvnc.exe" -nIS1527


"exotericist" <nospamthanks@xxxxxxxxxxx> wrote in message
news:45F80102-91F7-4E59-8D44-CBE77170142F@xxxxxxxxxxxxxxxx
specifically, i need to start the service as if i'd typed "-nIS1527" in
the
"Start Parameters" textbox.

i can't see how that relates to the W32Time registry keys.

many thanks,
e.

"Pegasus (MVP)" wrote:


"exotericist" <nospamthanks@xxxxxxxxxxx> wrote in message
news:4210AAC2-EAF6-4D94-B5E3-2F4E95D9852D@xxxxxxxxxxxxxxxx
i'm charged with maintaining an application which has multiple listener
services.

the first service can be set to auto.

subsequent services need to be passed a parameter to start.

in 2003 i've used sc.exe to pass a parameter to a service on startup
and
this works fine. i could set it so that the services were started by
the
act
of logging in.

however, i'd like the services to come up automatically on restart
without
the need for user intervention, since that's what services are supposed
to
do.

my question is, therefore, the one in the title:

how can i start a service in windows server 2003 on machine restart and
pass
it a parameter?

many thanks,
e.

Have a look at the Windows Time service. It starts automatically at boot
time and it uses parameters.
HKLM\SYSTEM\CurrentControlSet\Services\W32Time






.



Relevant Pages

  • Re: start service with parameters on restart
    ... "Pegasus (MVP)" wrote: ... how can i start a service in windows server 2003 on machine restart ... Have a look at the Windows Time service. ...
    (microsoft.public.windows.server.general)
  • Re: Sharing and Security on File Share
    ... The xxx dirctory was created in the test folder. ... "Pegasus (MVP)" wrote: ... net user rogene>> c:\test.txt ...
    (microsoft.public.windows.file_system)
  • Re: xcopy access denied
    ... "Pegasus (MVP)" wrote: ... "Share" permissions (as opposed to the NTFS permissions) ... Volume in drive \\Server01\users is Raid 5 ...
    (microsoft.public.windowsxp.general)
  • Re: xcopy access denied
    ... "Pegasus (MVP)" wrote: ... "Share" permissions (as opposed to the NTFS permissions) ... Volume in drive \\Server01\users is Raid 5 ...
    (microsoft.public.windowsxp.general)
  • Re: 16-bit MS-DO Subsystem
    ... This is hardly surprising with a dns of 192.168.254.254. ... "Pegasus (MVP)" wrote: ... Dial-up modem? ...
    (microsoft.public.win2000.general)

Loading