Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to remove windows service

SC STOP shortservicename
SC DELETE shortservicename

Note: You need to run the command prompt as an administrator, not just logged in as the administrator, but also with administrative rights. If you get errors above about not having the necessary access rights to stop and/or delete the service, run the command prompt as an administrator. You can do this by searching for the command prompt on your start menu and then right-clicking and selecting "Run as administrator". Note to PowerShell users: sc is aliased to set-content. So sc delete service will actually create a file called delete with the content service. To do this in Powershell, use sc.exe delete service instead

If you need to find the short service name of a service, use the following command to generate a text file containing a list of services and their statuses:

SC QUERY state= all >"C:Service List.txt"
For a more concise list, execute this command:

SC QUERY state= all | FIND "_NAME"
The short service name will be listed just above the display name, like this:

SERVICE_NAME: MyService
DISPLAY_NAME: My Special Service
And thus to delete that service:

SC STOP MyService
SC DELETE MyService
Comment

windows service delete

sc stop MyService
sc delete MyService
Comment

PREVIOUS NEXT
Code Example
Shell :: pyinstaller failed to execute script pyi_rth_pkgres 
Shell :: install plasma arch 
Shell :: string to array bash 
Shell :: how to change directory if folder name have space 
Shell :: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 
Shell :: how to list running processes in linux 
Shell :: how to list banned IP ubuntu 
Shell :: gzip version check 
Shell :: git display current head 
Shell :: xargs multiple commands "mac" 
Shell :: apt-get install certbot 
Shell :: linux move straight to home dir 
Shell :: ubuntu install times new roman font 
Shell :: docker image get extract dockerfile 
Shell :: bc add 
Shell :: gitlab add remote upstream 
Shell :: ionic capacitor v3 add android 
Shell :: grep but exclude directory 
Shell :: disable aslr 
Shell :: check gcc version 
Shell :: heroku rebuild without push 
Shell :: ubuntu install elasticsearch terminal 
Shell :: how to install jupyter 
Shell :: nvm linux 
Shell :: find unix 
Shell :: E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 
Shell :: download windows lock screen wallpaper 
Shell :: bash script language check if item in array 
Shell :: git merge abort 
Shell :: how to create tag in git 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =