Run As

G

Guest

Is it possible to make a program always run as administrator and pass along
the password?

I have been able to use the runas command, but have not been able to pass
along the password. Here is the command I have been using as a test, but
there does not appear to be a password paramater.

runas /user:administrator "C:\Windows\Notepad.exe"
 
K

Kelly

Hi Craig,

For Pro:

You can use the /savecred option to save it the first time the password is
entered and you dont need to enter it from then on.

You add the switch to the shortcut target. Right-click the shortcut and
select Properties, then the Shortcut tab. Edit the target line.

For example, this is the line to run Nero from a limited account:

%systemroot%\system32\runas.exe /user:computername\admin
/savecred "D:\Program Files\ahead\Nero\nero.exe"

The first time you run it, enter the password. After that it won't ask for
one again.

/taskbarplus!.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top