Skip to content
Follow
Windows

How to Install VBScript in Windows 11

Richard
Written by
Richard
Mar 6, 2023 Updated Sep 15, 2026 2 min read
How to Add Music Folders in Windows Media Player
How to Add Music Folders in Windows Media Player

VBScript is an older Microsoft coding language that lets you run automation scripts and legacy programs on Windows 11. When a .vbs script fails to open with an error, the built-in Windows Script Host tool is usually disabled on your computer.

Advertisement

Enabling this feature takes only a few moments through your system settings or the registry, allowing your old scripts to run properly again.

⚡ 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~~~~.

Advertisement

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

Install VBScript Windows 11 directly through the system settings menu if you need to run legacy scripts. Open Settings by pressing Win+I, go to Apps, choose Optional features, and search for VBScript to add it back to your system. You can also follow these exact same steps in reverse if you ever need to remove the feature later.

  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.

Advertisement
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.

Advertisement

Troubleshooting 24H2 Errors

Fix VBScript Windows 11 24H2 installation errors by checking your system status through PowerShell with specific command-line tools. Run a quick check command to see if the feature is missing, and use DISM (Deployment Image Servicing and Management, a tool for repairing Windows system files) to force the installation if standard settings fail.

⬛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.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 Related Tutorials

How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11
How to Set Default Profile in Windows Terminal
Windows How to Set Default Profile in Windows Terminal
How to Change Windows Terminal Themes
Windows How to Change Windows Terminal Themes
How to Change Tab Colors in Windows Terminal
Windows How to Change Tab Colors in Windows Terminal

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

Leave a Comment

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