`
hubin4
  • 浏览: 95444 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

How to delete a windows service

阅读更多
Recently, I was trying to delete a windows service. Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service (if any).

However, I installed some beta products and a service created by one of the applications was not removed automatically. Its very easy to remove a service from registry if you know the right path. Here is how I did that:

1. Run Regedit or Regedt32

2. Find the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"

3. Look for the service there and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).

alternatively, you can also use command prompt and delete a service using following command:

sc delete < SERVICE name>

or to create, simply type
sc create <SERVICE name>

Update:
If you have space in the file path you need to use quotation marks ("). For example:
sc create "MySQL" binpath= "C:\Archivos de programa\MySQL\MySQL Server 5.1\bin\mysqld.exe"

Thanks to Maya.

NOTE: You may have to reboot the system to get the list updated in service manager.

ZT FROM
http://geekswithblogs.net/shahedul/archive/2006/10/13/93984.aspx
分享到:
评论

相关推荐

    UE(官方下载)

    A question we often see is "I have a lot of blank lines in my file and I don't want to go through and manually delete them. Is there an easier way to do this?" The answer is: yes! Configure FTP Set up...

    VB编程资源大全(英文源码 API)

    wpchanger.zip This shows how to change Windows' Desktop Wallpaper&lt;END&gt;&lt;br&gt;20 , discad.zip This shows how to disable control alt and delete by tricking the computer into thinking that the ...

    Active Directory Cookbook, 3rd Edition.pdf

    Covers how to create, modify, link, copy, import, back up, restore, and delete GPOs using the Group Policy Management Console and scripting interface, including new Group Policy features that were ...

    VB编程资源大全(英文源码 控件)

    &lt;END&gt;&lt;br&gt;44,Spooler.zip Spooler.ocx activeX control with sample project which demonstrates how to send a document to the Windows printer spooler. &lt;END&gt;&lt;br&gt;45,PlayAVI.zip PlayAVI.ocx is an ...

    Beginning T-SQL with Microsoft SQL Server 2005 and 2008

    You will learn how the INSERT, UPDATE, and DELETE statements interact with the relational database engine and transaction log to lock and modify data rows with guaranteed consistency. You will not ...

    VB编程资源大全(英文源码 网络)

    build version and service pack info, the windows directory, the PDC name if you are logged onto an NT server and the time &lt;END&gt;&lt;br&gt;62 , ccheckduncount.zip If you want to check if there is a RAS/...

    Java邮件开发Fundamentals of the JavaMail API

    If you want to access a POP server with JavaMail 1.1.3, download and install a POP3 provider. Sun has one available separate from the JavaMail implementation. After downloading and unbundling pop31_...

    VclZip pro v3.10.1

    This is helpful if you are using VCLZip as a service or on a webserver for instance. ******** Upgrading existing applications that use VCLZip 2.X ********** For the most part, existing applications...

    Senfore_DragDrop_v4.1

    This is believed to be a bug in the Windows clipboard and a work around hasn't been found yet. * Asynchronous targets appears to be broken in the current release. * When TDropFileTarget....

    ICS delphixe10源码版

    With Delphi XE2 and later, VCL 64-bit Windows targets are supported for Delphi only. Currently FireMonkey is partly supported for Delphi only (there are still a few non-ported components). ICS for Mac...

    方便一键快速切换网卡DNS地址设置

    ,if you want to restore your settings select Restore (under choose a free DNS Service) and Press apply button 8. Languages preinstalled 9. fastest DNS - a bit improved 10. More Dns (17 to 32) 15 new...

    如何编写批处理文件批处理文件批处理文件

    Press any key to continue . . . Sample: @echo off :begin copy a:*.* d:back echo Please put a new disk into driver A pause goto begin 在这个例子中,驱动器 A 中磁盘上的所有文件均复制到d:back中...

    手机游戏开发实例(smartphone联机炸弹人)

    c++ wince sdk AI &lt;br&gt;smartphone版本 和windows版本 &lt;br&gt;目录 Table of content I. Introduction....................................................................................................

    如何使用IDirectoryObject

    要深入了解所有这些功能,你可以参考`How-to-use-IDirectoryObject.pdf`文档,它应该提供了更详细的指导和示例代码。同时,`Use_IDirectoryObject_src.zip`可能包含了一些实用的源代码示例,供你参考和学习。

Global site tag (gtag.js) - Google Analytics