Monday, April 27, 2009

Create or Delete Service

I know this is old now but still thought of posting it once here as it is required by most of the developers across the globe and newbies find it difficult sometimes to find it.
To create a Service follow the following steps:
1) Go to Start -> Run and type cmd in the Open: line. Click OK.
2) Type: sc create
3) Reboot the system

To Delete a Service follow the following steps:
1) Go to Start -> Run and type cmd in the Open: line. Click OK.
2) Type: sc delete
3) Reboot the system

If you are interested in deleting the service from registry you need to follow the following steps:
1) Go to Start -> Run and type regedit in the Open: line. Click OK.
2) Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
3) Scroll down the left pane, locate the service name, right click it and select Delete.
4) Reboot the system
The procedure works for Windows Xp as well as NT.