2

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).

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
1

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.

0

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.

0

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

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.