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

I have an application that prompts for Admin rights when the current user is not an Admin. I want to be able to save the Admin credentials after the prompt so that the application will not ask for Admin password everytime it is run. Thanks

share|improve this question

Cannot be done, as this would eliminate the need for UAC. You can turn it off, but that isn't what you're asking

You may be able to get away with using the runas command, depending on the program, but doubtful.

share|improve this answer

As far as I know, you can't save the password on the UAC.

You can try CPAU.

Command line tool for starting process in alternate security context. Basically this is a runas replacement. Also allows you to create job files and encode the id, password, and command line in a file so it can be used by normal users.

CPAU let's you save the user/password and then use it later. Examples:

cpau -u joehome\joe -p logon -ex "perl" -enc -file cleanup.job
Creates job file called cleanup.job to run perl script as joehomejoe

cpau -dec -file cleanup.job -lwp
Execute job file cleanup.job

Hope it helps.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .