Windows

How to Install VBScript in Windows 11

Richard
Written by
Richard
Mar 6, 2023 Updated Apr 30, 2026 3 min read

VBScript is an older tool used to run specific script files. Microsoft now prefers newer options like JavaScript. Because of this, it is not turned on by default in Windows 11.

Why use VBScript?

VBScript is an older scripting language. Microsoft is moving away from it to improve system security. You might need to install it if you use legacy software or old business scripts that require this technology to run.

Security and Deprecation Roadmap

Microsoft has officially deprecated VBScript. This means it is no longer being updated or improved. VBScript is often used by attackers to run malicious code. By removing it from the default Windows 11 installation, Microsoft makes your computer safer. You should only enable it if you have a specific, verified need for legacy application support.

Install or Uninstall via Settings

You can add or remove this feature using the standard Windows Settings menu. Note: This process requires administrator privileges.

  1. Open the Windows Settings app by pressing Windows key + I.
  2. Click on Apps on the left side.
  1. Select the Optional features tile.
windows 11 optional features tile
  1. Click the View features button.
windows 11 optional features view features button
  1. Search for VBScript, check the box, and click Next.
Windows install VBScript via the Settings app
  1. Click Install to finish.
Windows install VBScript confirm install button

To uninstall later, return to this menu, find VBScript, and select Uninstall.

Windows uninstall VBScript button

Install or Uninstall via Command Line

Advanced users can use the Windows Terminal. Note: This requires running the terminal as an administrator.

To install the feature, run this command:

💻Code
DISM /Online /Add-Capability /CapabilityName:VBSCRIPT~~~~

To remove the feature, run this command:

💻Code
DISM /Online /Remove-Capability /CapabilityName:VBSCRIPT~~~~

Enterprise Management (GPO & Intune)

IT administrators can manage this feature across a network. You can use Group Policy Objects (GPO) or Microsoft Intune to deploy the VBScript Feature-on-Demand (FOD) to multiple computers. This ensures that legacy applications remain functional in a corporate environment while maintaining control over the deployment.

Troubleshooting 24H2 Errors

If you are using Windows 11 24H2 and scripts fail, ensure the feature is installed. You can check if it is enabled via PowerShell with this command:

PowerShell
Get-WindowsCapability -Online -Name VBSCRIPT~~~~

If the status is ‘NotPresent’, use the DISM command provided above to install it. If errors persist, verify that your user account has local administrator rights.

Summary

VBScript is a legacy tool that is not included in Windows 11 by default. If you need it for old programs, you can install it via the Optional Features menu or the DISM command line. Always remember that enabling it carries security risks. If you do not need it, keep it uninstalled to stay safe.

Is VBScript permanently removed in Windows 11 24H2?

VBScript is not permanently removed, but it is no longer installed by default. It is now an optional feature that you can manually add back to your system if you need to run older scripts or legacy applications that rely on this specific scripting environment.

What are the security risks of enabling VBScript?

VBScript is considered a security risk because it lacks modern protections. Attackers often use VBScript to execute malicious code on your computer. By keeping it disabled, you reduce the “attack surface” of your system, making it much harder for harmful software to run successfully on your machine.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version