Personalization Add VBScript Script File (VBS) to New Context Menu in Windows 11


  • Staff
VBS_banner.png

This tutorial will show you how to add or remove VBScript Script File (VBS) to the New context menu for all users in Windows 10 and Windows 11.

A .vbs file is a VBScript (Visual Basic Script) file written in the VBScript scripting language that can be executed within Windows or Internet Explorer via the Windows-based script host (Wscript.exe), and may also use the .vb file extension.

The New context menu allows users to quickly create a new item in the current location.

The default New context menu items include to create a new Folder, Shortcut, Bitmap image, Text Document, Compressed (zipped) Folder, and Library.

If you like, you can add VBScript Script File to the New context menu to make it easier for users to create a new VBS file on demand.

VBScript is being deprecated. In future releases of Windows, VBScript will be available as a feature on demand before its removal from the operating system.



You must be signed in as an administrator to add or remove VBScript Script File on the New context menu.



EXAMPLE: VBScript Script File (VBS) added to New context menu

File_Explorer_New_menu.png
New_context_menu.png




Here's How:

1 Do step 2 (add) or step 3 (remove) below for what you would like to do.

2 Add VBScript Script File (VBS) to New Context Menu

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Add_VBS_to_New_context_menu.reg


(Contents of .reg file)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.vbs\ShellNew]
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\
  2d,00,34,00,37,00,30,00,00,00
"NullFile"=""

3 Remove VBScript Script File (VBS) from New Context Menu

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Remove_VBS_from_New_context_menu.reg


(Contents of .reg file)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.vbs\ShellNew]

4 Save the .reg file to your desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 Sometimes you may need to either restart explorer process, sign out and sign in, or restart the computer to apply.

8 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

  • VBS.png
    VBS.png
    12.3 KB · Views: 50
  • Add_VBS_to_New_context_menu.reg
    1 KB · Views: 106
  • Remove_VBS_from_New_context_menu.reg
    496 bytes · Views: 108
Last edited:

Latest Support Threads

Back
Top Bottom