Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(SC) DeleteService FAILED 1072

Last time I create WAS profile and WASService then I try to config and run many script for learn how to config WAS, Finally it crash so i use wasprofile delete this profile and forgot delete WASService.

Now I found IBM Webphere Application Server service display in services.msc list, so I tried to delete it with WASService.exe -remove command and windows SC command but I got message

C:\Program Files\IBM\WebSphere\AppServer\bin>sc delete "IBMWAS61Service - DEV" [SC] DeleteService FAILED 1072: The specified service has been marked for deletion. 
like image 853
Fuangwith S. Avatar asked Nov 20 '08 11:11

Fuangwith S.


People also ask

How do you check if a service is marked for deletion?

Navigate to : HKLM\SYSTEM\CurrentControlSet\Services\YourService\DeleteFlag. Check for the the DeleteFlag entry of this service in Registry and check if it is there is and the value is set to "1". If it is, reset it to "0" and check for the result.

How do I force a Windows service to uninstall?

You can also remove services using a command line. Hold down the Windows Key, then press “R” to bring up the Run dialog. Type “SC DELETE servicename“, then press “Enter“.


1 Answers

make sure the service is stopped, the services control panel is closed, and no open file handles are open by the service.

Also make sure ProcessExplorer is not running.

like image 194
StingyJack Avatar answered Sep 28 '22 04:09

StingyJack