Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to query, stop and delete a service in Windows
  • powershell logo
    Connecting to a remote server failed and WinRM cannot process the request: Error code 0x8009030e occurred while using Kerberos authentication, and a specified logon session does not exist Scripts
  • windows 10 lock screen
    How to reset your lost or forgotten Windows 10 Password Windows
  • diag7
    How to run Windows Memory Diagnostics Tool on Windows Windows
  • what is saml e1690630549650
    What is SAML – Security Assertion Markup Language Windows Server
  • Move Resources On Azure
    Move Azure Resources between Subscriptions AWS/Azure/OpenShift
  • How do I disable credentials from Remote Desktop
    Disable credential Prompts for Remote Desktop Connections Windows
  • windows 1 1
    Generation 2 VM: Set up a HyperV VM through PXE boot Virtualization
  • windows sysinternals
    Sysmon from SysInternal: What is System Monitor and how to install and use it Windows Server

How to query, stop and delete a service in Windows

Posted on 13/12/201830/12/2023 Christian By Christian No Comments on How to query, stop and delete a service in Windows
query service

Services in the Windows OS are background processes that usually require no user interaction and is similar to a UNIX daemon process. Services provide core operating system features, such as Web serving, event logging, file serving, printing, cryptography, and error reporting. In this article, we will discuss how to query or stop and delete a service in Windows. Please see How to find disabled Active Directory User accounts, and How to stop Windows from applying updates.

Oftentimes, you may need to delete a service. An example is when a program is uninstalled and does not uninstall correctly. 

This leaves its service in the Services list. First I will be looking at ways to stop a service.

Query a Service

Let’s assume you do not know the service name and you need to find the short service name of a service and the “services.msc” console is cannot open. Follow the procedure below.

The following command generates a text file containing a list of services and their statuses.

SC QUERY state= all >"C:\Users\Administrator\Desktop\Service-list.txt"
stop service

For a more concise list, execute the following command below

SC QUERY state= all | FIND "_NAME"

To Stop a Service

There are various ways to open the services console. See the following guide on how to manage Windows task Manager for more information.

Via the Command Prompt (CLI)

To stop the service via the CLI or Services Console. Run the command below

SC STOP shortservicename
delete service

Via Windows Services

Launch services.msc from the Run dialog box or the Windows search box. This will open up the services console.

Windows service

Please pay proper attention to all the red arrows as they indicate ways in which you can stop the service.

Deleting a Service

All services are listed in the Windows Registry. If a service’s Registry key is removed, it will be deleted from the system.

Via The Command Prompt

With the name of the service you wish to delete, fire up Windows Command Prompt with elevated rights with the following commands as shown below.

Note: If the service you’re deleting has any spaces in the name, you will have to enclose the name in quotes when you type the command.

SC DELETE servicename

Via the Registry

All services are listed in the Windows Registry. If a service's Registry key is removed. It will be deleted from the system.

For more information on Windows Registry, and for how to search through the registry

Launched the registry key via “regedit“, then select â€œOK“.
– Navigate to the following location in the registry:
– HKEY_LOCAL_MACHINE
– System
– CurrentControlSet
– Services

"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"

Look for the service that you want delete and delete it. Right-click on the service as shown below and delete it.

Via Third-Party Tool (SysInternal)

The following third-party tools can be used to delete Windows Service.

AutoRuns

This method is probably the easiest from them all. Navigate to the services tab and perform the deletion of the specific service from there.

On o download and use Windows SysInternals tools locally. Also, see how to use Sysinternals Live Tools.

Service Manager by Sergeg Vaulin

Note: This is not a secure site!!! Use at your own risk 

If you have found other ways to do this or found this article on how to query or stop and delete a service in Windows useful. kindly leave a comment below.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:Microsoft Windows, services, windows sysinternals tools

Post navigation

Previous Post: How to stop Windows from applying updates
Next Post: Error importing OVA file to AWS: Client error saved empty is empty

Related Posts

  • install python 3 and pip
    How to upgrade and downgrade PIP on Windows Windows
  • fast user switching in windows 10 1
    Fast user switching: How to create a desktop shortcut in Windows 10 to switch User Accounts Windows
  • remote desktop version and protocol
    Determine the Remote Desktop Client Version Windows
  • Featured image 1
    How to Change User Account Type in Windows 10 Windows
  • Run Android Apps on Windows with BlueStacks
    How to Run Android Apps on Windows with BlueStacks Windows
  • How to Upgrade Windows 10 with an Unsupported CPU TPM 1.0 to Windows 11
    Upgrading from Windows 10 with Unsupported CPU and TPM 1.0 Windows

More Related Articles

install python 3 and pip How to upgrade and downgrade PIP on Windows Windows
fast user switching in windows 10 1 Fast user switching: How to create a desktop shortcut in Windows 10 to switch User Accounts Windows
remote desktop version and protocol Determine the Remote Desktop Client Version Windows
Featured image 1 How to Change User Account Type in Windows 10 Windows
Run Android Apps on Windows with BlueStacks How to Run Android Apps on Windows with BlueStacks Windows
How to Upgrade Windows 10 with an Unsupported CPU TPM 1.0 to Windows 11 Upgrading from Windows 10 with Unsupported CPU and TPM 1.0 Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • powershell logo
    Connecting to a remote server failed and WinRM cannot process the request: Error code 0x8009030e occurred while using Kerberos authentication, and a specified logon session does not exist Scripts
  • windows 10 lock screen
    How to reset your lost or forgotten Windows 10 Password Windows
  • diag7
    How to run Windows Memory Diagnostics Tool on Windows Windows
  • what is saml e1690630549650
    What is SAML – Security Assertion Markup Language Windows Server
  • Move Resources On Azure
    Move Azure Resources between Subscriptions AWS/Azure/OpenShift
  • How do I disable credentials from Remote Desktop
    Disable credential Prompts for Remote Desktop Connections Windows
  • windows 1 1
    Generation 2 VM: Set up a HyperV VM through PXE boot Virtualization
  • windows sysinternals
    Sysmon from SysInternal: What is System Monitor and how to install and use it Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.