Solved

Adding a service in windows 2000

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 2000 Kerberos problem 5 321
windows 2000 3 430
auto copy 8 616
VBScript not processed at Windows 8.1 logon 2 7,978
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…
An article on effective troubleshooting
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

778 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