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.

How can you run an application as another user in Windows 7? The only catch is that I don't want to have to hold down the shift key, right click on the application and choose Run as different user. I need it to automatically login using the login credentials I specify.

share|improve this question

1 Answer 1

up vote 3 down vote accepted
  1. Create a shortcut to your executable.
  2. Modify the "Target" under the shortcut's properties to:

    runas /user:DOMAIN\USERNAME "path to executable"

Then, just use the shortcut when you want to run the program.

share|improve this answer
    
If you need to pass any arguments to the target executable, make sure to include them in within the quotation marks. –  Sam Oct 1 '13 at 6:11
    
what about the password? –  Moslem Ben Dhaou Oct 28 '13 at 10:20

Your Answer

 
discard

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

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