How to create a new service on Windows 2000 Server

  • Thread starter Thread starter Mauro J Alvarado
  • Start date Start date
M

Mauro J Alvarado

does any one know how to create a new service task on
windows 2000 server using the DOS prompt?

Thanks.
 
Use sc.exe from the Resource Kit.

sc created /? yields:

Creates a service entry in the registry and Service Database.
SYNTAX:
sc create [service name] [binPath= ] <option1> <option2>...
CREATE OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec>
(default = own)
start= <boot|system|auto|demand|disabled>
(default = demand)
error= <normal|severe|critical|ignore>
(default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>

Ray at home
 
If the application was written as a service you install it.

If it wasn't written as a service you can try tools that will crutch an app into running in a way similar to a service
such as srvany or the task scheduler.
 
Back
Top