Specified service has been marked for deletion
When you uninstall a program, the system might not remove the associated service. The service may be marked for deletion but cannot be removed until you restart the device. The message Specified service has been marked for deletion can occur if another process has an open handle to the service. For example, the services console (services.msc) may have been open during the uninstall.
Solution
To delete a service without rebooting the device, use the sc delete command to delete the service entry from the registry.
sc delete [service name]
For example:
sc delete "Advanced Monitoring Agent"
- No spaces:
sc delete servicename - With spaces:
sc delete "servicename with spaces"
After you execute the deletion command, open the services console to confirm the service is removed.
- Start > Run.
- Type
services.mscand press Enter.
For more information about the sc delete command, see the Microsoft documentation.
Please note that we are not responsible for the contents of external sites and any effect they may have on your system.
