How to Enable or Disable Virtual Machine Platform in Windows 11
Virtual Machine Platform in Windows 11 is a built-in feature that sets up a safe, isolated space on your computer to run Linux tools and developer programs like WSL 2 and Docker Desktop. Turning this feature on lets you use these advanced tools directly inside Windows 11 without needing third-party software.
You need to turn this setting on if you plan to use Linux environments or test software on your PC. If you do not run any developer tools, you can turn the feature off to free up system memory.
You can enable or disable the Virtual Machine Platform in Windows 11 through Settings, Control Panel , Command Prompt, or PowerShell. Navigate to Settings System Advanced Virtual Workspaces and toggle the switch, or use the “Turn Windows features on or off” Control Panel option.
Enable Virtual Machine Platform Using Settings
You can enable Virtual Machine Platform using the Settings app in Windows 11 by opening the main menu, going to system options, and toggling the feature on without needing any advanced tools. This method works well if you prefer using the standard graphical interface rather than command-line tools.
- Click System on the left side.
- Select Advanced on the right to expand it.

- Click on Virtual Workspaces to expand it.

- Toggle the Virtual Machine Platform button on or off.
- Close the Settings app.

Enable Virtual Machine Platform Using Control Panel
You can enable Virtual Machine Platform using the Control Panel by opening the optional features list and checking the correct box. This built-in Windows tool lets you turn system features on or off quickly without needing to download extra software.
- Click Start and type "Turn Windows features on or off" in the search bar.
- Select the result to open the Windows Features pane.

- Scroll down and check the box next to Virtual Machine Platform to turn it on.
- To turn it off, uncheck the box.

What happens next? You'll see a message asking you to restart your computer to complete the process.

- Restart your computer.

After restarting, Virtual Machine Platform will be active. You can now create virtual machines and run different operating systems.
Enable Virtual Machine Platform Using Command Prompt
You can enable Virtual Machine Platform using Command Prompt by running a short text command with administrator rights. This method uses the built-in Deployment Image Servicing and Management tool to turn on the feature instantly.
- [REQUIRES ADMIN PRIVILEGES] Click Start, search for Command Prompt, right-click on it, and select Run as administrator.

- Copy and paste this command, then press Enter:
DISM /Online /Enable-Feature /FeatureName:"VirtualMachinePlatform"To turn it off, run this command instead:
DISM /Online /Disable-Feature /FeatureName:"VirtualMachinePlatform"- Restart your computer.
Virtual Machine Platform should now be installed and enabled.
Enable Virtual Machine Platform Using PowerShell
You can enable Virtual Machine Platform using PowerShell by running an administrator window and executing a specific cmdlet. This approach provides a fast way to turn the feature on if you prefer scripting or modern command tools.
- [REQUIRES ADMIN PRIVILEGES] Open the Start menu and search for PowerShell.

- Type this command to enable Virtual Machine Platform:
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform"To disable it, run this command instead:
Disable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform"- Restart your computer for the changes to take effect.
Summary
You can enable Virtual Machine Platform using four different methods in Windows 11 depending on your preference. These options include the Settings app, Control Panel, Command Prompt, and PowerShell, giving you full control over how you manage system features.
- Settings app — The easiest method for most users
- Control Panel — Uses the older Windows features panel
- Command Prompt — Requires admin privileges; use the DISM command
- PowerShell — Requires admin privileges; use the Enable-WindowsOptionalFeature command
Once enabled, you can create virtual machines and test different operating systems for development and testing purposes.
Was this guide helpful?
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.
No comments yet — be the first to share your thoughts!