Skip to content
Follow
Windows

How to Install VBScript in Windows 11

Richard
Written by
Richard
Mar 6, 2023 Updated Jun 19, 2026 3 min read
How to Add Music Folders in Windows Media Player
How to Add Music Folders in Windows Media Player

You enable VBScript in Windows 11 by turning on the Windows Script Host feature, which is often already active but can be disabled for security. VBScript, or Visual Basic Scripting Edition, is a scripting language developed by Microsoft that allows you to automate tasks and create simple applications within the Windows environment.

This scripting language was a popular choice for system administrators and power users for many years. Even though Microsoft now promotes newer languages like PowerShell and JavaScript, VBScript remains valuable for executing older scripts.

You might encounter errors when trying to run .vbs files if Windows Script Host is disabled. This tutorial will guide you through the quick process of reactivating it.

⚡ Quick Answer

You can install VBScript in Windows 11 by going to Settings > Apps > Optional features, clicking “View features,” searching for VBScript, checking the box, and clicking Install. Alternatively, use the DISM command in Windows Terminal: DISM /Online /Add-Capability /CapabilityName:VBSCRIPT~~~~.

Why use VBScript?

So, why would you even consider using VBScript today? It’s an older scripting language that Microsoft is phasing out to boost system security. You’ll likely only need it if you’re working with legacy software or old business scripts that can’t run without it.

Security and Deprecation Roadmap

Microsoft has stopped updating VBScript, meaning it’s no longer improved and can be a security risk, which is why it’s not included by default in Windows 11.

Install or Uninstall via Settings

You can install VBScript in Windows 11 easily through the Settings app, which is helpful if you need it for older programs.

  1. Open the Windows Settings app by pressing Windows key + I.
  2. Click on Apps on the left side.
windows 11 settings apps on menu
windows 11 settings apps on menu
  1. Select the Optional features tile.
windows 11 optional features tile
windows 11 optional features tile
  1. Click the View features button.
windows 11 optional features 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
Windows install VBScript via the Settings app
  1. Click Install to finish.
Windows install VBScript confirm install button
Windows install VBScript confirm install button

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

Windows uninstall VBScript button
Windows uninstall VBScript button

Install or Uninstall via Command Line

If you’re comfortable with the command line, you can use the Windows Terminal. Just make sure you run it as an administrator.

To install the feature, type this command:

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

To remove it, use this one:

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

Enterprise Management (GPO & Intune)

IT pros can use tools like Group Policy Objects (GPO) or Microsoft Intune to push the VBScript Feature-on-Demand (FOD) to many computers at once. This keeps legacy applications working in a company setting while you maintain control over what gets installed.

Troubleshooting 24H2 Errors

If VBScript isn’t working on Windows 11 24H2, the first step is to check if it’s installed correctly using a simple command.

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

If the status shows ‘NotPresent’, use the DISM command mentioned earlier to install it. If you still run into errors, confirm your user account has local administrator rights.

Summary

VBScript is an older tool not included in Windows 11 by default, but you can install it through Optional Features or the command line if needed for old programs.

Is VBScript permanently removed in 🪟 Windows 11 24H2?

VBScript isn’t permanently removed, but it’s no longer installed by default. It’s now an optional feature you can manually add back 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
Was this helpful?
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.

📚 Related Tutorials

How to Set Default Profile in Windows Terminal
Windows How to Set Default Profile in Windows Terminal
How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11
How to Open PowerShell in Windows 11
Windows How to Open PowerShell in Windows 11
How to Open Windows Terminal as Admin Automatically
Windows How to Open Windows Terminal as Admin Automatically

No comments yet — be the first to share your thoughts!

Leave a Comment

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