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.

I need to set up a lap-top for a colleague. He should have normal user account, but in order to connect to the university network, he requires a program that needs administrative permissions to run. The program is a command line utility.

Is it possible to somehow run the program as administrator from his account, without requiring him to enter administrator password?

P.S. We tried running program as a service, but that didn't work out because the program requires interaction with the user (credentials for university network).

share|improve this question

migrated from stackoverflow.com May 21 '12 at 20:52

This question came from our site for professional and enthusiast programmers.

    
What OS version does he use? –  Ruben May 21 '12 at 18:47
    
Windows 7 operating system –  Bogi May 21 '12 at 18:59

3 Answers 3

up vote 1 down vote accepted

To achieve this you can use runas command:

runas /savecred /user:Administrator command

But as well-pointed by Tejs, this is will open computer to security attacks.

share|improve this answer

Umm.. no? That's the whole point of the security context requiring him to enter the administrative password.

If you could, there would be a whole host of nasty viruses out in the wild.

share|improve this answer

Try RunAsUser, works in my Windows XP, I'm not sure it works in other windows system.

share|improve this answer

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.