Skip to content
Follow
Windows

How to Install VBScript in Windows 11

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

VBScript (Visual Basic Scripting Edition) is an old coding language Microsoft made to help you automate tasks and run legacy programs in Windows 11. If you try to run a script file ending in .vbs and see an error, the built-in Windows Script Host tool is likely turned off on your PC.

Turning this feature back on takes just a few clicks in your settings or the registry, and it gets your old scripts working again right away.

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

Microsoft is phasing out VBScript, an older scripting language, to boost system security. VBScript is typically needed only when working with legacy software or old business scripts that cannot run otherwise.

Security and Deprecation Roadmap

Microsoft stopped updating VBScript, meaning it receives no further improvements and poses a security risk, which explains why it is missing by default in Windows 11.

Install or Uninstall via Settings

Open Settings by pressing Win+I, then head to Apps and select Optional features. Click View features, search for VBScript, and check the box to install it .

  1. Open the Windows Settings app by pressing Win+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

Run Windows Terminal as an administrator to handle this via the command line.

Paste this command to install the feature:

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

To remove it, use this command:

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

Enterprise Management (GPO & Intune)

System administrators can deploy VBScript across multiple network computers at once using Group Policy (GPO) or Microsoft Intune. This keeps legacy applications working in a company setting while maintaining 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~~~~

If the status shows 'NotPresent', use the DISM command mentioned earlier to install it. If errors persist, confirm that your user account has local administrator rights.

Summary

VBScript is an older tool not included in Windows 11 by default, but Optional Features or the command line allows for manual installation when old programs require it.

Is VBScript permanently removed in 🪟 Windows 11 24H2?

VBScript is not permanently removed, but it no longer installs by default. It remains available as an optional feature to manually add back when running older scripts or legacy applications that rely on this specific scripting environment.

What are the security risks of enabling VBScript?

VBScript poses a security risk because it lacks modern protections. Attackers often leverage VBScript to execute malicious code on computers. Keeping it disabled reduces the attack surface of the system, making successful execution of harmful software much harder.

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 *