Re: Problem start service automatically




"Massimo" <Massimo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CCE3915C-F357-4975-B8AD-257E6D2BCA20@xxxxxxxxxxxxxxxx
Thank' you for your answer.

The http://support.microsoft.com/kb/q137890/ is not available
I use Kraun Ups with Richcomm software.
Installation software works well but when i reboot the system the service
is
not runned and i must launch from batch file the PMSERVICE.exe that it's
the
monitoring service.
But i don't want launch from cmd.
I want it launchs like the service. But if i insert it in the service it
doesn't work.

What must a program have for work like the service?

"Lanwench [MVP - Exchange]" wrote:

In news:36149D2C-BFDF-4E56-9A99-2E613A4236CB@xxxxxxxxxxxxx,
Massimo <Massimo@xxxxxxxxxxxxxxxxxxxxxxxxx> typed:
I have a server sbs 2003 standard with all last update installed.

I've problem with service about ups controller.

If i launch file directly from start->run it works well.

But if i register a service (sc create UPScontroller binpath = ....)
and i start service..

error 1053 appear.

I tried create a batch file.. I tried to launch execute file with &
but nothing.
Under service it doesn't work. I tried naturally change rights (in
services console i put that service run with administrator credential
).

Thank's for help

What exactly is it you're trying to do? If you are using the built-in
Windows UPS management stuff, it has its own service. If you're using a
third party app (like APC's), it should have its own services as well,
which
should be installed automatically by the application's setup routine.

If you need to create a service from an executable, for some reason, you
should look at http://support.microsoft.com/kb/q137890/. But if your UPS
management software requires this, I don't know that it's software I'd
trust
to run properly on my server, as this should be built in!




http://support.microsoft.com/kb/q137890/
Here it is:
How To Create a User-Defined Service
View products that this article applies to.
Article ID : 137890
Last Review : June 29, 2004
Revision : 2.2

This article was previously published under Q137890
IMPORTANT: This article contains information about editing the registry.
Before you edit the registry, make sure you understand how to restore it if
a problem occurs. For information on how to do this, view the "Restoring the
Registry" or the "Restoring a Registry Key" online Help topics in Registry
Editor.
SUMMARY
The Windows NT Resource Kit provides two utilities that allow you to create
a Windows NT user-defined service for Windows NT applications and some
16-bit applications (but not for batch files).

Instrsrv.exe installs and removes system services from Windows NT and
Srvany.exe allows any Windows NT application to run as a service.
MORE INFORMATION
To create a Windows NT user-defined service, perform the following steps:
1. At a MS-DOS command prompt(running CMD.EXE), type the following
command:

path\INSTSRV.EXE My Service path\SRVANY.EXE

where path is the drive and directory of the Windows NT Resource Kit
(i.e., C:\RESKIT) and My Service is the name of the service you are
creating.

Example:
C:\Program Files\Resource Kit\Instsrv.exe Notepad C:\Program
Files\Resource Kit\Srvany.exe
NOTE: To verify that the service was created correctly, check the
registry to verify that the ImagePath value under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\service name
is set to point to SRVANY.EXE. If this is not set correctly, the
service will stop shortly after it starts and return an Event ID 7000 "The
service name failed to start."

WARNING: Using Registry Editor incorrectly can cause serious problems
that may require you to reinstall your operating system. Microsoft cannot
guarantee that problems resulting from the incorrect use of Registry Editor
can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing
Keys And Values" online Help topic or the "Add and Delete Information in the
Registry" and "Edit Registry Data" online Help topics in Registry Editor.

NOTE: You should back up the registry before you edit it.
2. Run Registry Editor (Regedt32.exe)and locate the following subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<My Service>
3. From the Edit menu, click Add Key. Type the following and click OK:

Key Name: Parameters
Class : <leave blank>
4. Select the Parameters key.
5. From the Edit menu, click Add Value. Type the following and click
OK:

Value Name: Application
Data Type : REG_SZ
String : <path>\<application.ext>

where <path>\<application.ext> is the drive and full path to the
application executable including the extension (i.e., C:\WinNT\Notepad.exe)
6. Close Registry Editor.
By default, a newly created service it configured to run Automatically when
the system is restarted. To change this setting to Manual, run the Services
applet from Control Panel and change the Startup value to Manual. A service
set to Manual can be started in one of several ways:

- From the Services applet in Control Panel

- From a MS-DOS command prompt, type the following:

NET START <My Service>

- Use the Sc.exe utility from the Resource Kit. Type the following from a
MS-DOS command prompt:

<path>\Sc.exe start <My Service>

where <path> is the drive and directory of the Windows NT Resource Kit
(i.e., C:\Reskit).


For more information on installing and removing a user-defined service,
please see the Srvany.wri document provided with the Windows NT Resource Kit
utilities (i.e., C:\Reskit\Srvany.wri). This document can also be found on
the Windows NT Resource Kit CD in the Common\Config directory.

----------------------------------------------------------------------------
----

APPLIES TO
. Microsoft Windows 2000 Server
. Microsoft Windows 2000 Advanced Server
. Microsoft Windows 2000 Professional Edition
. Microsoft Windows NT Workstation 3.51
. Microsoft Windows NT Workstation 4.0 Developer Edition
. Microsoft Windows NT Server 3.51
. Microsoft Windows NT Server 4.0 Standard Edition

Back to the top

Keywords: kbhowto KB137890


begin 666 uparrow.gif
M1TE&.#EA"@`*`/<``````( ```" `(" ````@( `@ " @(" @,# P/\```#_
M`/__````__\`_P#______P``````````````````````````````````````
M````````````````````````````````````````````````````````````
M````,P``9@``F0``S ``_P`S```S,P`S9@`SF0`SS `S_P!F``!F,P!F9@!F
MF0!FS !F_P"9``"9,P"99@"9F0"9S "9_P#,``#,,P#,9@#,F0#,S #,_P#_
M``#_,P#_9@#_F0#_S #__S,``#,`,S,`9C,`F3,`S#,`_S,S`#,S,S,S9C,S
MF3,SS#,S_S-F`#-F,S-F9C-FF3-FS#-F_S.9`#.9,S.99C.9F3.9S#.9_S/,
M`#/,,S/,9C/,F3/,S#/,_S/_`#/_,S/_9C/_F3/_S#/__V8``&8`,V8`9F8`
MF68`S&8`_V8S`&8S,V8S9F8SF68SS&8S_V9F`&9F,V9F9F9FF69FS&9F_V:9
M`&:9,V:99F:9F6:9S&:9_V;,`&;,,V;,9F;,F6;,S&;,_V;_`&;_,V;_9F;_
MF6;_S&;__YD``)D`,YD`9ID`F9D`S)D`_YDS`)DS,YDS9IDSF9DSS)DS_YEF
M`)EF,YEF9IEFF9EFS)EF_YF9`)F9,YF99IF9F9F9S)F9_YG,`)G,,YG,9IG,
MF9G,S)G,_YG_`)G_,YG_9IG_F9G_S)G__\P``,P`,\P`9LP`F<P`S,P`_\PS
M`,PS,\PS9LPSF<PSS,PS_\QF`,QF,\QF9LQFF<QFS,QF_\R9`,R9,\R99LR9
MF<R9S,R9_\S,`,S,,\S,9LS,F<S,S,S,_\S_`,S_,\S_9LS_F<S_S,S___\`
M`/\`,_\`9O\`F?\`S/\`__\S`/\S,_\S9O\SF?\SS/\S__]F`/]F,_]F9O]F
MF?]FS/]F__^9`/^9,_^99O^9F?^9S/^9___,`/_,,__,9O_,F?_,S/_,____
M`/__,___9O__F?__S/___RP`````"@`*```(( `?"!Q(D*",@@,/'BRX\$%#
1AP(7/D2(<")%BA8O/@@(`#L`
`
end

.



Relevant Pages

  • "APPINIT_DLLS=" error and ".wll" error
    ... Ok first off I have no knowledge of registry problems or how to fix them. ... All the DLLs that are specified in this value are loaded by each Microsoft ... Note This feature may not be available in future versions of the Windows ... Microsoft Windows 2000 Standard Edition ...
    (microsoft.public.windowsupdate)
  • NewestShareware.com Issue #89
    ... FileBoss for Windows ... Program Homepage/Download url ... In general users make a program execute at window startup by ... Adding programs to the Registry and WIN.INI file protects the program. ...
    (comp.software.shareware.announce)
  • FIXED!
    ... How to Force Kerberos to Use TCP Instead of UDP ... Microsoft Windows 2000 Advanced Server ... Before you modify the registry, ...
    (microsoft.public.win2000.security)
  • Re: Windows XP home login/off
    ... How to Perform an In-Place Upgrade of Windows XP ... Click on How To Run a Repair Install ... registry has worked the 5 or 6 times I have seen this problem. ... The script will stop and ask you to hit enter to continue to load SCSI ...
    (microsoft.public.windowsxp.wmi)
  • Re: Error 80070005
    ... After you upgrade to Microsoft Internet Explorer 6.0 Service Pack 2 in ... Microsoft Windows XP SP2, some SSL-secured Web pages and Web sites may not ... this behavior is caused by security changes in Windows XP ... Update registry keys. ...
    (microsoft.public.windowsupdate)