From time to time I need to restart a specific service on a server. Occasionally it gets stuck on "starting" status. Usually I can kill it with a standard taskkill /f, but sometimes I get "access denied" message. What could be the cause for that? What setting (I suppose it's some server setting that influences that) could cause this? I always run an elevated command prompt

  • What service are you trying to kill? I see two OSes in the tags - does it affect both? – Christopher Hostage Nov 28 '18 at 16:27
  • Yes, it affects both systems. It's application service - Healthservice. Related to SCOM agent – Petr Synek Nov 29 '18 at 7:18
  • Try to find the service in registry HKLM\SYSTEM\CurrentControlSet\Services to find the service, and right-click it see the permissions, Try to delete the Key to delete the service. If you cannot delete, Take owner of the Key and try again. – OOOO Dec 4 '18 at 5:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.