Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.