Solved

Adding a service in windows 2000

Posted on 2003-11-19
8
770 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 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