(SC) DeleteService FAILED 1072

后端 未结 10 2012
傲寒
傲寒 2020-12-07 13:51

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

10条回答
  •  被撕碎了的回忆
    2020-12-07 14:46

    I had a similar problem and what I did to overcome it was the following:

    1. Stop the service: net stop "ServiceName"
    2. Ensure: the "mmc.exe" process does not exist (The "Services" list window): taskkill /F /IM mmc.exe
    3. Delete the service: sc delete "ServiceName"

      C:\server>sc delete "ServiceName"
      
      [SC] DeleteService SUCCESS
      

    Now, if I execute another sc command, what I get is the following:

    C:\server>sc delete "ServiceName"
    
    [SC] OpenService FAILED 1060:
    
    The specified service does not exist as an installed service.
    

    But not the 1072 error message

提交回复
热议问题