Delete a Windows Service Using the Command Line

Developing and debugging Windows Services in Visual Studio 2005 usually means creating setup projects to install and uninstall them. One of the quirks of using installers, however, is that sometimes the Windows service fails to uninstall. Below is the manual way of deleting or uninstalling a Windows service using the command line in Windows Vista and XP.

C:>sc delete [service name]

The utility also has other functions relating to Windows Services. Check them out.

If you liked this little howto. Please, consider sharing it. Thank you!

I CANNOT be held responsible for the use of this utility. Please, be careful.


Tags: , , , , , , ,

Bookmark and Share

Comments

SM4JL
Jul 16, 2008 2:48 AM
SM4JL Thanks. Helped me to get rid of one service I wasn't able to uninstall other way.
Carlo
Jul 16, 2008 8:50 AM
Carlo You're welcome!

Want to leave a comment?