Subscribe to our RSS feed     Get daily updates in your mail box

Adding the Run as Administrator option for .VBS and .JS files

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


Bookmark this Page!BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon | Wink |
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?

Enter your email address:

Delivered by FeedBurner

There Is 1 Response So Far. »

  1. [...] Adding the Run as Administrator option for .VBS and .JS files in Vista [...]

Post a Response