Get all your news in one place.
100’s of premium titles.
One app.
Start reading
Windows Central
Windows Central
Technology
Mauro Huculak

How to uninstall VBScript (and why you should) on Windows 11 version 24H2 (2024 Update)

Windows 11 remove VBScript.

Starting on Windows 11 version 24H2 (2024 Update), Microsoft is making the VBScript a feature on-demand that you can completely remove from your computer, and in this guide, I will show you the steps to complete this configuration.

VBScript (Microsoft Visual Basic Scripting Edition) is a lightweight scripting language designed to automate tasks and add functionality to web pages in the operating system. However, since it may contain security vulnerabilities, a lack of functions compared to modern languages, and a lack of development, Microsoft no longer recommends using this feature unless it's essential.

As a result, starting with the 2024 Update, Windows 11 includes an option to remove the feature using the Optional features settings or PowerShell. 

In this how-to guide, I will outline the different ways to uninstall the VBScript feature on Windows 11.

How to uninstall VBScript on Windows 11 using Settings

To uninstall the VBScript feature on Windows 11, use these steps:

  1. Open Settings on Windows 11.
  2. Click on System.
  3. Click the Optional features page from the right side.
(Image credit: Mauro Huculak)
  1. Click on VBScript.
  2. Click the Remove button.
(Image credit: Mauro Huculak)

Once you complete the steps, the operating system will remove the VBScript feature from the computer.

Install VBScript from Settings

To install the VBScript feature, use these steps:

  1. Open Settings.
  2. Click on System.
  3. Click the Optional features page from the right side.
(Image credit: Mauro Huculak)
  1. Click the View features button in the "Add an optional feature" setting.
(Image credit: Mauro Huculak)
  1. Search for VBScript and check the feature from the result page.
  2. Click the Next button.
(Image credit: Mauro Huculak)
  1. Click the Add button.
(Image credit: Mauro Huculak)

After you complete the steps, the VBScript feature will install again on your computer.

How to uninstall VBScript on Windows 11 using PowerShell

To uninstall the VBScript feature using PowerShell, use these steps:

  1. Open Start.
  2. Search for PowerShell, right-click the top result, and choose the Run as administrator option.
  3. Type the following command to remove the VBScript feature and press Enter: Get-WindowsCapability -online | Where-Object { $_.Name -like '*VBSCRIPT*' } | Remove-WindowsCapability -online
(Image credit: Mauro Huculak)

Once you complete the steps, the PowerShell command will remove the VBScript feature from Windows 11.

Install VBScript from PowerShell

To install the VBScript feature using PowerShell commands, use these steps:

  • Open Start.
  • Search for PowerShell, right-click the top result, and choose the Run as administrator option.
  • Type the following command to remove the VBScript feature and press Enter: Get-WindowsCapability -online | Where-Object { $_.Name -like '*VBSCRIPT*' } | add-WindowsCapability -online
(Image credit: Mauro Huculak)

After you complete the steps, the PowerShell command will re-install the scripting feature on Windows 11.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources: 

Sign up to read this article
Read news from 100’s of titles, curated specifically for you.
Already a member? Sign in here
Related Stories
Top stories on inkl right now
Our Picks
Fourteen days free
Download the app
One app. One membership.
100+ trusted global sources.