Wednesday, October 29, 2008

Creating a User Defined Service on Windows 2000/2003

1. Login to the target server

2. Install the appropriate resource kit (WIN2K, WIN2K3, etc.)

3. Navigate to the installation directory

a. Default is C:\Program Files\Windows Resource Kits\Tools

4. Run the following command

a. >instsrv.exe "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"

b. Where

i. Instsrv is the resource kit tool to setup the service

ii. is the name that will appear in Services

iii. "C:\Program Files\Windows Resource Kits\Tools\srvany.exe" is the complete path to the SRVANY.EXE resource kit tool

5. Once the command has been issued, a successful installation will receive the following result:

a. The service was successfuly added!

6. Next, open REGEDIT and navigate to the following location:

a. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

7. From the Edit menu, click Add Key and name it Parameters

8. Next from the Edit menu, click Add Value and type this information.

a. Value Name: Application

b. Data Type : REG_SZ

c. String : \

9. Now, in the Services Applet

a. Optional - modify the login information for the service

b. Optional - change the startup type

c. Start the service


No comments: