Adding a service in windows 2000


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.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob StoneCommented:
Use SRVANY from the Resource CD or search the web for it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Why do you want to add notepad as a service? Why not just put a shortcut in the all users\start\programs\startup menu?
Just to add, here is the link to download the Resource Kit:

and here is an article descrybing troubleshooting the various problems with srvany.exe:;en-us;152460
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
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" ,"")
I'm wondering what the status is as well, I have successfully run this script on many of occasions so I know it works.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.