In Windows 7 and Windows Vista where there is UAC (User Account Control) built-in, users may need to run certain applications or programs as administrator to gain privileged full administrator rights. For most file types, such as .EXE or .COM, Windows 7 and Vista, the operating system automatically include a contextual command option called “Run as Administrator” in the right click menu. However, that’s not the case for VBScript (.VBS) and JavaScript (.JS) scripting files.
Users who need to run .VBS or .JS script files with elevated administrator privileges can use the following registry hack to add the “Run as Administrator” right click menu item to the .VBS and .JS file’s context menu.
Download and merge (run) the following registry registration entries files in order to create necessary registry keys to display and Run as Administrator option on .VBS or .JS right click menu respectively.
For VBScript (.vbs): vbs-runas.reg
For JavaScript (.js): js-runas.reg
What’s the registry files above do is adding the required registry key named runas for VBSFile and JSFile ProgIDs at the following location:
HKEY_CLASSES_ROOT\VBSFile\Shell\runas
or,
HKEY_CLASSES_ROOT\JSFile\Shell\runas
So, to undo the process and remove the Run as Administrator for VBSFile and JSFile, just remove the above registry key.
Recent Posts
- Able2Extract Professional 11 Review – A Powerful PDF Tool
- How to Install Windows 10 & Windows 8.1 with Local Account (Bypass Microsoft Account Sign In)
- How to Upgrade CentOS/Red Hat/Fedora Linux Kernel (cPanel WHM)
- How to Install Popcorn Time Movies & TV Shows Streaming App on iOS (iPhone & iPad) With No Jailbreak
- Stream & Watch Free Torrent Movies & TV Series on iOS with Movie Box (No Jailbreak)
Tip and Trick
- How To Download HBO Shows On iPhone, iPad Through Apple TV App
- Windows 10 Insider Preview Build 19025 (20H1) for PC Official Available for Insiders in Fast Ring – Here’s What’s News, Fixes, and Enhancement Changelog
- Kaspersky Total Security 2020 Free Download With License Serial Key
- Steganos Privacy Suite 19 Free Download With Genuine License Key
- Zemana AntiMalware Premium Free Download For Limited Time