Adding the Run as Administrator option for .VBS and .JS files
March 27th, 2008 • Related • Filed Under
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:
HKEY_CLASSES_ROOT\VBSFile\Shell\runas
HKEY_CLASSES_ROOT\JSFile\Shell\runas
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:
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 the “Open with Notepad” context menu option for all file types
- Vista - Desktop.ini files shown on the desktop
- Open an elevated Command Prompt from the Desktop context menu
Bookmark this Page!BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon | Wink |


If you enjoyed this post, make sure you
Prefer an E-mail subscription?
Pingback by Add "Copy as Path" option to the context menu in Windows XP - The Winhelponline Blog on 10 May 2008:
[...] Adding the Run as Administrator option for .VBS and .JS files in Vista [...]