By default, Windows Vista does not include the Run as Administrator option in the context menu for Vbscript (.vbs) and JScript (.JS) files. Here is how to add the Run as Administrator option to the context menu.
Adding the Run as Administrator option for scripts
1. Download script_runas.reg and save to Desktop
2. Right-click on the file and choose Merge
3. Click Yes when prompted.
This .reg file adds the runas command for VBSFile and JSFile ProgIDs. The registry keys are located here:
Note: I’ve just duplicated the contents of the branch named Open, and written it to the runas branch.
SCREENSHOT

MORE INFORMATION
Here are related articles that discuss about runas:
- Open an elevated Command Prompt from the folder context menu
- Elevate a Vbscript file using the "runas" parameter in ShellExecute
- Register DLLs (elevated) using the context menu
- Add “Edit HOSTS file” option in the context menu
Bookmark this Page!
BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon |
Related Posts
- Add “Open File Location” To the Context Menu for Shortcuts in Windows XP
- Add “Copy as Path” Option to the Context Menu in Windows XP
- Add Quick Launch (Create Shortcut) Option to the Send to Menu in Windows XP/Vista
- Add the “Open With Notepad” Context Menu Option for All File Types
- Add Select All Option to the Context Menu in Windows Vista
- Add Word 97-2003 to the New Menu After Installing Office 2007
- Add .PHP File Type to the New Menu in Windows 2000/XP/Vista
- Open an Elevated Command Prompt From the Desktop Context Menu
- “Run as Different User” Context Menu Option Is Inbuilt in Windows 7
- Reset Lost Windows XP Administrator Password Using ERD Commander
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?

› 