본문 바로가기
조회 수 3355 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

http://www.ghacks.net/2011/03/12/how-to-remove-services-in-windows/

Removing Services from the command line

This is probably the most complex solution. You may need to open an elevated command prompt first, depending on the version of Windows. You can try and open the command line normally with the hotkeyWindows-r, typing cmd and pressing enter. If you issue the command and get an error that you need administrative privileges you need to click on the Windows start orb, select Programs (or All Programs), thenAccessories. Locate Command Prompt, right-click the item in the start menu and select Run as Administratorfrom the context menu. This triggers an UAC prompt under Vista and Windows 7 that needs to be accepted.

The command prompt displays Administrator: Command Prompt if the operation was successful.

Windows 7 and Vista users who have the search box enabled in the start menu can enter cmd instead in the box to open the elevated command prompt with Ctrl-Shift-Enter.

administrator command prompt

Windows Services are deleted with the command sc delete followed by the name of the service. Since it is likely that you do not know the name you need to open the Windows Services listing. This is done with the keysWindows-r, typing services.msc and enter on the keyboard.

windows services

What you need is the service name, not the display name that is shown in the main listing. The names may be identical sometimes. Double-click the service that you want to delete to see both names. Apple Mobile Device is for instance the service name and display name of the service. Microsoft on the other hand often uses short cryptic service names and longer display names. The Bitlocker Drive Encryption Service (display name) is listed with the service name BDESVC.

service name

The name may have implications on the command. Lets say we want to delete the Apple Mobile Device service, a leftover after uninstalling iTunes. The command to do that on the command line is sc delete “Apple Mobile Device”.

Notice the quotation marks around the service’s name? A space is generally seen as a new command or parameter, which means that it is necessary to use quotation marks if names or commands make use of spaces to basically tell the program that they are all part of a word or phrase. Take a look at the screenshot below to see what happens if the command is issued without quotation marks, and then with.

sc delete service

To paraphrase: To delete services from the command line you need to do the following:

  • Open an elevated command prompt
  • Open the Windows Services management listing
  • Identify the service name and not the display name by double-clicking on a service.
  • Run the command, make sure you use quotation marks if the name contains spaces.
  • The message [SC] DeleteService SUCCESS indicates that the service has been successfully removed from the operating system.

Deleting Services in the Windows Registry

All services are listed in the Windows Registry. If a service’s Registry key is removed, it will be deleted from the system. This method is a lot faster usually. Here is how it is done:

Use the hotkey Windows-r to open a run box, enter regedit in the box and press enter. Some users may see an UAC prompt that they need to accept.

The window displays folders on the left side, and subfolders or parameters on the right. Locate the following Registry key by following the folder structure on the left.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services

A click on services lists all available Windows Services as subfolders of that key. Please note that the service’s Service Name is used as the folder name which means that you may need to open the Services listing once again to identify the right services.

I suggest you backup the key first before you start deleting services. Left-click on the services folder and select File > Export to backup the key. Type in a file name and save it to the hard drive.

You can import the backed up key again by selecting File > Import and the file that you have previously exported.

windows services registry

Locate the service that you want to delete in the listing. A left-click selects the service and displays its parameters on the right pane. To remove a service press delete on the keyboard, or right-click the service and select delete from the context menu.

delete service

To paraphrase this method:

  • Open the Windows Registry
  • Navigate to the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services
  • Backup the services key
  • Identify the service that you want to delete
  • Left-click on that service and press delete on the keyboard


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
30 How to enable LAN Routing on Windows Server 2008 R2 file Hojung 2014.04.15 2427
29 Windows 2003 IAS를 이용한 스위치 및 무선 AP 802.1x RADIUS 인증 file Hojung 2013.04.15 4625
28 파티션 얼라이먼트와 디스크 성능 향상 (Partition Alignment) Hojung 2013.04.11 4572
27 Creating LAB users with a Powershell Script Hojung 2013.03.28 3425
26 Disable Password Requirements in Windows Server 2003 file Hojung 2013.03.28 3242
» How to delete a windows service Hojung 2012.12.19 3355
24 How To Change Security Settings In Internet Explorer in Windows SRV 2008 file Hojung 2012.12.19 2902
23 Verify DNS registration for domain controllers using the nslookup command Hojung 2012.07.26 3493
22 Windows 2003에 RADIUS 인증 서버 설치 file Hojung 2012.02.04 8332
21 How to remove AD in windows 2003 Hojung 2012.01.23 4027
20 Changing Internet Explorer Security Settings on Windows Server 2008 Hojung 2011.11.24 4497
19 Windows 2008 암호정책 변경방법 Hojung 2011.11.19 5910
18 Disable Password Requirements in Windows Server 2003 Domains file Hojung 2011.11.19 5288
17 Finding your base DN in Active Directory Hojung 2011.11.03 5506
16 Kerberos vs LDAP Hojung 2011.10.16 5323
15 Kerberos and LDAP in AD - 2 Hojung 2011.10.16 6415
14 Kerberos and LDAP in AD - 1 Hojung 2011.10.16 5111
13 윈도우 msc 실행명령어 모음 Hojung 2011.10.16 7771
12 Windows SRV 조직단위 및 사용자계정 - 2 Hojung 2011.10.16 5749
11 Windows SRV 조직단위 및 사용자계정 Hojung 2011.10.16 6109
Board Pagination ‹ Prev 1 2 Next ›
/ 2

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5