We had a service set up with HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\servicename\DependOnService of other services set to this one service. When I would shut down the one service, all its dependents would shut down automatically.

However, after some internal changes to these in-house services, they no longer depend on the one service. So, I removed it from their DependOnService keys using regedit. The problem is, in the Services window, it still insists that if I shut down the one service the others will be shut down, but I don't want to cause any more down time on them than I have already today. I've tried closing the Services window and launching it again, to no avail. Is there any way to get it to re-read the DependOnService data?

  • 1
    good question, but I'm pretty sure you'll need to reboot the server. – tony roth Mar 28 '13 at 19:21
  • Agree with @tonyroth. You've made a change to a very fundamental component of the OS. Time to reboot. – Ryan Ries Mar 28 '13 at 22:58
  • Oddly, one of them picked up by itself for no apparent reason, but the other three were still on the list when I would try to shut it down. – Kev Mar 29 '13 at 1:49

From an elevated command prompt, enter (Surround service name in quotes if it has a space):

sc config <service name> depend= /
| improve this answer | |
  • thanks, it worked for me. – SergeyT Oct 6 at 21:20

You can't. You have to reboot.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.