Do you like this story?
If you are a user of Windows 7/Vista, you probably know how to execute .exe files as administrator by making a right-click on any .exe file and clicking on Run as administrator.
However, if you right-click on a .JS or .VBS file, Windows doesn't propose to execute the file as administrator.
To be able to run .JS and .VBS files as administrator when right-clicking on them, follow these instructions:
1. Launch the registry editor by pressing Windows Logo + R, type regedit and press Enter.
2. For .VBS files, navigate to this registry key:
For .JS files, navigate to this registry key:
3. For both .VBS and .JS, right-click on Shell and select New >> Key.
4. Rename this key as runas.
5. Close now the registry editor and go and make a right-click on a .VBS or .JS file to see the difference now: