Deleting a windows service
Deleting a windows service from the command line is a two step process.
In the first step, we have to query& stop the service with the actual name of the service.
Open the services (services.msc) and identify the name of the service that you want to delete. An example name is shown in the image given below.
sc query | find [Service-name-to-be-deleted]
Now, run the below command to stop the service.
sc stop [Service-name-to-be-deleted]
Now , in the second step, delete the service. Execute the below command.
sc delete [Service-name-to-be-deleted]
Done, the service list maybe refreshed only after a system restart.
🚀
Comments
Post a Comment