
Originally Posted by
Aloone_Jonez
runas /user:Admin cmd
You'll be promped for the password for the administrator account if you've set one which is a pain but I recommend it.

Originally Posted by
acc1
The specific Runas shortcut does not save much time, but would be useful if there was also a way to save the password, so that the program runs without a need to enter the administrator name and password.
You can run program as admin without having to type password using vb script. Copy and paste the following code into notepad and save with a VBS extension. Create shortcut to the script on the desktop of the limited account or other convenient location and change its icon
. Since many anti-virus programs block VB scripts you may need to set it to allow this script. Change the dummy password with your admin password (Line:4) include the tilde at the end and add the full path of executable (Line:2). You can use environment variables (%WINDIR%, %PROGRAMFILES%....etc) in the file path.
Code:
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""path of executable"""
WScript.Sleep 100
oShell.Sendkeys "youradminpassword~"
Wscript.Quit
Bookmarks