Run As Command

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"
 
M

Mark L. Ferguson

Yes, if you give away the admin password, it negates the whole idea of
having one at all. There are ways to send the keystrokes to the app as it
opens, but I doubt you want that.
 

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