Solved

Adding a service in windows 2000

Posted on 2003-11-19
8
765 Views
Last Modified: 2010-04-14
Hi

how do i add a service in windows 2000 professional.  By modifying the Registry, I have been able to add a service of notepad.exe but while starting the service it is giving the following error:

Error 1053: The service did not respond to the start or control request in a timely fashion.

Please help me as early as possible.
Thanks in advance.

Sudipta

0
Comment
Question by:sudipta_pal
8 Comments
 
LVL 15

Accepted Solution

by:
Rob Stone earned 50 total points
ID: 9777906
Use SRVANY from the Resource CD or search the web for it.
0
 
LVL 2

Expert Comment

by:Stevejones123
ID: 9778622
Why do you want to add notepad as a service? Why not just put a shortcut in the all users\start\programs\startup menu?
0
 
LVL 4

Expert Comment

by:Ronin
ID: 9779020
Just to add, here is the link to download the Resource Kit:
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

and here is an article descrybing troubleshooting the various problems with srvany.exe:
http://support.microsoft.com/default.aspx?scid=kb;en-us;152460
0
 
LVL 9

Assisted Solution

by:TooKoolKris
TooKoolKris earned 50 total points
ID: 9779851
Take this code and put it into a (.vbs) file and see if it will do it for you. Make sure you replace "YourService" and the Path to fit your needs.

Const OWN_PROCESS = 16
Const NOT_INTERACTIVE = True
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objService = objWMIService.Get("Win32_BaseService")
errReturn = objService.Create ("DbService", "YourService", _
  "c:\windows\system32\db.exe", OWN_PROCESS ,2 ,"Automatic" , _
      NOT_INTERACTIVE ,".\LocalSystem" ,"")
0
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 10053323
I'm wondering what the status is as well, I have successfully run this script on many of occasions so I know it works.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now