There may be several causes which lead to the service being stuck in “marked for deletion”.
- SysInternals’ Process Explorer is opened. Closing it should lead to automatic removal of the service.
- Task Manager is opened.
- Microsoft Management Console (MMC) is opened. To ensure all instances are closed, run
taskkill /F /IM mmc.exe
. - Services console is opened. This is the same as the previous point, since Services console is hosted by MMC.
- Event Viewer is opened. Again, this is the same as the third point.
- The key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{service name} exists.
- Someone else is logged into the server and has one of the previously mentioned applications opened.
- An instance of Visual Studio used to debug the service is open.
Related Posts:
- How to uninstall a Windows Service when there is no executable for it left on the system?
- How do I restart a service on a remote machine in Windows?
- Difference between masm32 and masm?
- How do I start PowerShell from Windows Explorer?
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- Should I clean the “compress your OS drive” from disk cleanup on window 10?
- What does “@” mean in Windows batch scripts
- How to run a PowerShell script
- How do I install and use cURL on Windows?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- ow can I find where Python is installed on Windows?
- Setting Windows PowerShell environment variables
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Create an empty file on the commandline in windows (like the linux touch command)
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- “X does not name a type” error in C++
- what is a “dump file” in windows task manager?
- How do I run Redis on Windows?
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- Error 1053 the service did not respond to the start or control request in a timely fashion
- Python virtualenv questions
- Using putty to scp from windows to Linux
- What languages are Windows, Mac OS X and Linux written in?
- The operator or administrator has refused the request task scheduler
- Wix Toolset RegistrySearch is not saving a registry key
- How to run a makefile in Windows?
- Command Prompt “Net View System Error 6118”
- Service will not start: error 1067: the process terminated unexpectedly
- How to run ‘sudo’ command in windows
- How to exit Python script in Command Prompt?
- Python command not working in command prompt
- Batch script loop
- What is the ‘realtime’ process priority setting for?
- Verify return code: 20 when testing OpenSSL
- Command line for looking at specific port
- “X does not name a type” error in C++
- Windows Activator .bat Text
- Windows Activation Batch (.cmd File
- How To Activate Windows 10
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- What is the difference between Cygwin and MinGW?
- Text editor to open big (giant, huge, large) text files
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- Using GNU Scientific Library (GSL) under Windows x64 with MinGW
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- Visual C++ executable and missing MSVCR100d.dll
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- where does Silverlight app’s executable/assembly/whatever actually get installed on my hard drive?
- Can’t start hostednetwork
- Wix RemoveFile and RemoveFolder for removing leftovers
- Do I need to include #!/usr/bin/perl line in Perl script on Windows?
- sudo command not found on Cygwin
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- How to split file in windows just like linux
- exec: “gcc”: executable file not found in %PATH% when trying go build
- What is Windows Fabric and how to host services in it?
- Python not working in the command line of git bash
- How to open an elevated cmd using command line for Windows?
- The type initializer for ‘MyClass’ threw an exception
- SVN admin management GUI tool
- Setting up a cron job in Windows
- While loop in batch
- Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
- How to grant permission to users for a directory using command line in Windows?
- Bridged networking not working in Virtualbox under Windows 10
- Is there a Pattern Matching Utility like GREP in Windows?
- How can I run a program from a batch file without leaving the console open after the program starts?
- windows could not start service on local computer error 5 access is denied
- What exactly is the scope of Access Violation ‘0xc0000005’?
- How do I get the current username in Windows PowerShell?
- Can’t start hostednetwork
- What does “Can not obtain ownership information” in Netstat -ab mean?
- False ‘Sharing Violation’ Xcopy error message
- OS x El capitan 10.11 – Virtualbox – Missing Bluetooth Controller Transport
- batch file from scheduled task returns code 2147942401
- How to split large text file in windows?
- CALL command vs. START with /WAIT option
- BAT file to map to network drive without running as admin
- Are there any log file about Windows Services Status?
- mysql community server vs mysql installer
- How do I use spaces in the Command Prompt?
- What is a Windows Handle?
- Need auto-restart script in batch for minecraft server
- How to use/install GNU binutils (objdump)
- How do I force Robocopy to overwrite files?
- Using sys/socket.h functions on windows
- Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154
- In which cases does program exit with 0x40010004 code?
- Sublime Text from Command Line
- What is the difference between \ and \\ in file path
- The requested operation cannot be performed on a file with a user-mapped section open
- How to set commands output as a variable in a batch file
- HyperV is not available on Home editions
- Unable to start MySQL server
- Git Bash doesn’t see my PATH
- Dependency Walker: missing dlls
- How do I execute a *.dll file
- Best practice for exiting batch file?
- Windows service start failure: Cannot start service from the command line or debugger [duplicate]