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
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
- How to Add Quick Launch (Create Shortcut) Option to the Send to Menu in Windows 7, Vista and XP
- Add the “Open With Notepad” Context Menu Option for All File Types
- Add Select All Option to the Context Menu in Windows Vista
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?




