Skip to main content


How To Add 'Run As Administrator' To VBS Files


Just like JavaScript, a VBScript (Visual Basic Script), Is a client-side scripting language containing code that can be executed within the Windows environment, or Internet Explorer. It was originally developed by Microsoft, and Is basically a lighter version of Microsoft Visual Basic. Sometimes you need to execute a VBS file with elevated privileges, hence In this tutorial, I will show you how to add Run as administrator to the right-click context menu for all VBS files.


Before I make a start, here's what I'm referring to. Upon right-clicking my executable file named Setup.exe, the Run as administrator option Is available In the context menu as shown below. I can now launch the file with full unrestricted elevated rights.



If however, If you try and do the same with a VBS (VBScript) file, the Run as administrator Is not available by default. It's very Important to have the option at your disposal, particularly when experiencing Access Denied or No Permission errors.

As such, I will demonstrate how to add Run as administrator to VBS files, by using a neat little Registry file that will automatically add the entries to the Windows Registry, and apply the option to the right-click thereafter. I have provided the download links to the Registry file, at the end of this article. So without further delay, let's rip Into this tutorial.

Step One:

Once you've downloaded the file, extract It's contents to a folder of your choice and double-click the Add To VBS Files.reg file. It will prompt whether to add the entries to the Windows Registry, so hit Yes.


Step Two:

A message will be returned, confirming that the entries have been successfully added to the Registry, so click OK to finalize the process. The Run as administrator, has now been added to the right-click context menu for VBS files. Let's make sure It's functional In the next couple of steps.


Step Three:

Here's what happened when I right-clicked my VBS file named Windows 10 Tips, before the above tweak was applied. The Run as administrator option Is missing.


Step Four:

And this Is the result after the tweak. Upon right-clicking my Windows 10 Tips.vbs file, as you can see, the Run as administrator has been successfully added to the context menu. Perfect! All VBS files can now be executed with full elevated rights.


Last Step:

In the event you've changed your mind and want to remove the Run as administrator from the right-click context menu, simply double-click the Remove From VBS Files.reg file, and hit Yes.


Final Thoughts:

Although this may seem like a somewhat lengthy process, It only takes around one minute to apply the tweak- from the time you download the file, extract It's contents and execute the respective Registry file thereafter. The good thing about It, Is that the change can be reversed just as easy as It was to apply.

Use any of the links below to download the aforementioned Registry files.


Direct Link Solidfiles:
Download Now
Direct Link Mega:
Download Now
Direct Link Mediafire:
Download Now
Direct Link 4shared:
Download Now
Direct Link Sabercathost:
Download Now

Comments

Popular posts from this blog

How To Create A Virtual Machine Using VMware

A virtual machine, often abbreviated as a VM, Is a software program containing an operating system that's Installed on the physical machine (PC), and operates In It's own Isolated environment. Every task performed In the VM, remains there, without affecting the main computer. Every user should have a virtual machine up and running, so In this tutorial, I will demonstrate a detailed guide on how to create & Install a virtual machine on your computer, namely VMware Workstation.

Check The Health Of Your Laptop's Battery

When you first purchase your laptop and fully charge the battery thereafter, It runs at It's optimal state for quite a while. However, over time, It Inevitably decreases In performance, and does not hold It's charge capacity as per It's brand new state. This Is due to wear & tear, and a few other factors. It's very Important to know the condition of your battery, so In this tutorial, I will show you how to view the current status and health of your laptop's battery.

How To Troubleshoot Your PC's Power Settings

Upon purchasing your computer with the Windows OS Installed, by default, It's power plan setting Is set to Balanced. Depending on the manufacturer, the hibernate and sleep modes are also configured to turn off at certain Intervals. You can also create a plan of your own, based on your computing usability. Power plan settings can corrupt at the best of times, hence In this tutorial, I will show you how to troubleshoot your PC's power settings natively within Windows.