Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have an application that we use that loads as a service on logon, and I'd like to disable the service from running when an Administrator logs in to their account. I've done some research and haven't figured it out yet. Any ideas? This is in a Windows 7 environment.

share|improve this question

You could have a login script that does if (isAdmin ) { sc service stop }.. That is psuedo code but it should be very easy to work out.

share|improve this answer
Might not be easy for everyone. A bit more detail might help, otherwise this may as well have been posted as a comment. – Karan Jun 5 '13 at 4:34
I tried doing a batch file script with a net stop, but it requires admin rights. I tried putting it in via GPO, but it takes a long time for the service to stop (if it even does) and ends up being faster to just let it load and close the application. – user219302 Jun 10 '13 at 18:28

You must log in to answer this question.