Skip to content
Follow
Windows

How to Install VBScript in Windows 11

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

VBScript is a scripting language from Microsoft that lets you automate tasks and build simple applications in Windows. This scripting language, short for Visual Basic Scripting Edition, is usually already on in Windows 11 through the Windows Script Host feature.

While newer languages like PowerShell are now more common, VBScript remains useful for running older scripts. You might see errors when trying to run VBScript files (.vbs) if the Windows Script Host feature is turned off, which sometimes happens for security.

This guide shows you how to easily turn the Windows Script Host back on, so you can run your VBScript files without problems.

⚡ 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?

VBScript, an older scripting language, is being phased out by Microsoft to boost system security. You will likely only need VBScript if you are working with legacy software or old business scripts that cannot run without VBScript.

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

If older programs need VBScript, you can install it through the Settings app in Windows 11. To install VBScript, open Settings by pressing the Windows key and I, then go to Apps, select Optional features, click View features, search for VBScript, check the box, and click Next.

  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 using the command line, you can use Windows Terminal. Make sure you run it as an administrator.

To install the feature, use this command:

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

To remove it, use this command:

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

Enterprise Management (GPO & Intune)

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

Troubleshooting 24H2 Errors

VBScript installation status on Windows 11 24H2 can be checked in PowerShell. Run the command 'Get-WindowsCapability -Online -Name VBSCRIPT~~~~'. If the output shows 'NotPresent', use DISM to install VBScript. Ensure your user account has administrator rights to complete the installation and fix remaining issues.

PowerShell
Get-WindowsCapability -Online -Name VBSCRIPT~~~~
📝Good to Know
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 Windows Terminal as Admin Automatically
Windows How to Open Windows Terminal as Admin Automatically
How to Change Windows Terminal Themes
Windows How to Change Windows Terminal Themes

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

Leave a Comment

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