Solved

Adding a service in windows 2000

Posted on 2003-11-19
8
764 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

11 Experts available now in Live!

Get 1:1 Help Now