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


Popular posts from this blog

How To Decode The Windows 10 Product Key

Every Windows 10 operating system that's Installed and activated on the computer, has what's called a Product Key , that Is either pre-Installed by the manufacturer, or added by the end user when formatting their PC. In order to have a fully-functional OS, It must contain a valid Product Key. Whilst there are many tools that can extract It from the operating system, In this tutorial, I will show you how to manually decode the Product Key.

How To Check Faulty Drivers In Windows 10

For hardware devices to function properly, they must have device drivers  Installed, thus allow them to perform at their optimal state. It's all well and good when they're running without error, but they do tend to fail at the best of times, which can cause system Instability and/or loss of functionality. It can be a difficult task pinpointing the problematic driver(s), so In this tutorial, I will show you how to check faulty drivers , without the aid of third-party tools.

How To Create A Fake File Of Any File Size

Depending on your business environment or Individual requirements, sometimes there Is the need to test files of a given capacity. Such tests can Include Identifying how well your hard disks perform under heavy read/write operations, or to establish whether files can be securely deleted beyond recovery. Whatever the reason may be, In this tutorial, I will show you how to create a fake file of any file size.