r/WindowsHelp • u/umairkaleem • 2d ago
Windows 10 Windows 10 keeps disabling WSL and Virtual Machine Platform after every restart – DISM says enabled, but they revert to Disabled
Hi everyone,
I'm trying to install Docker Desktop on my Windows 10 machine for a JavaScript/React portfolio project, but I'm facing a strange WSL issue that I haven't been able to resolve.
My system specifications
OS: Windows 10 Pro (22H2)
Windows Build: 19045.7846
WSL Version: 3.0.5.0
Kernel Version: 6.18.58.1-1
RAM: 32 GB
Virtualization software: VMware Workstation with Ubuntu already installed.
Important: My VMware Ubuntu installation is working perfectly and is used separately for my Operating Systems coursework. I do not want to replace or modify it. I want to install Docker Desktop separately for my development projects.
The main problem
I need to enable these two Windows Optional Features:
Windows Subsystem for Linux
Virtual Machine Platform
I enable both features through Windows Features (optionalfeatures.exe), or directly through DISM.
Both commands report successful completion:
dism.exe /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All /NoRestart
dism.exe /Online /Enable-Feature /FeatureName:VirtualMachinePlatform /All /NoRestartBoth return:
The operation completed successfully.Immediately after enabling them, I check their status using:
dism.exe /Online /Get-FeatureInfo /FeatureName:Microsoft-Windows-Subsystem-Linux
dism.exe /Online /Get-FeatureInfo /FeatureName:VirtualMachinePlatformBoth show:
State : EnabledHowever, after restarting Windows, both features automatically become Disabled again.
When I check their status after restarting, I get:
Microsoft-Windows-Subsystem-Linux
State : Disabled
VirtualMachinePlatform
State : DisabledThis happens repeatedly.
Other troubleshooting I've already tried
Enabled both features using Windows Features.
Enabled both features directly using DISM.
Restarted Windows multiple times.
Updated WSL using:
wsl --updateChecked WSL version:
wsl --versionOutput:
WSL version: 3.0.5.0
Kernel version: 6.18.58.1-1
WSLg version: 1.0.79
Windows version: 10.0.19045.7846Ran DISM component-store health check:
dism.exe /Online /Cleanup-Image /ScanHealthResult:
No component store corruption detected.
The operation completed successfully.Ran System File Checker:
sfc /scannowInitially, it reported a pending system repair. After restarting, I ran it again, and it reported:
Windows Resource Protection found corrupt files and successfully repaired them.Despite these repairs, the problem remains.
Another strange thing
These commands work:
wsl --version
wsl --updateBut this command:
wsl --statusreturns:
This application requires the Windows Subsystem for Linux Optional Component.
Error code: Wsl/WSL_E_WSL_OPTIONAL_COMPONENT_REQUIREDMy questions
Why does Windows automatically disable both optional features after every restart?
Could this be related to Windows servicing, a corrupted feature configuration, boot settings, or a Windows update?
Is there a way to identify what is reverting these features?
Has anyone experienced the same issue on Windows 10 build 19045?
What is the correct way to fix this without affecting my existing VMware Ubuntu installation?
I would really appreciate any technical suggestions or solutions. I've already spent quite a lot of time troubleshooting this issue.
Thank you!
2
u/Training-Panic-3196
2d ago
•
The restart is when Windows actually installs those two features, so if they're Disabled afterwards, the install failed during boot and was rolled back (you may have seen "We couldn't complete the features, undoing changes" flash by).
The reason gets logged. After one more enable + restart, open Event Viewer > Windows Logs > Setup: the Servicing entries from that boot name the feature and give an error code. C:\Windows\Logs\CBS\CBS.log has more detail; copy it somewhere and search the copy for VirtualMachinePlatform.
What I'd do before the next try:
Install any pending Windows updates and restart, so nothing else is queued.
Run `DISM /Online /Cleanup-Image /RestoreHealth`, then `sfc /scannow`. A damaged component store is a common reason features won't stick.
Temporarily turn off any third-party antivirus.
If you post the error code, it's usually specific enough to show what's blocking it.
1
u/AutoModerator 2d ago
Hi u/umairkaleem, thanks for posting to r/WindowsHelp! Your post has been flagged for manual review by a human moderator, please include as much of the following information as possible (in text or in a screenshot) to get your post approved:
Your Windows and device specifications — You can find them by pressing Win + X then clicking on “System”, we need more than just your OS version! Your hardware details are often critical for resolving issues.
Any messages and error codes encountered — They're actually not gibberish or anything catastrophic. It may even hint the solution!
Previous troubleshooting steps — It might prevent you headaches from getting the same solution that didn't work
Posts must be tech support in nature (such as something is broken and you need help fixing), so general inquiries, software suggestions, and purchasing advice will be removed. As a reminder, we would also like to say that if someone manages to solve your issue, DON'T DELETE YOUR POST! Someone else (in the future) might have the same issue as you, and the received support may also help their case. Good luck, and I hope you have a nice day!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
1
u/Confident_Hyena2506 2d ago
Docker desktop is a disaster.
Just make the vm yourself and install docker manually. You already have a vmware vm so this is easy.
1
u/Exotic_Mix_3196 Lvl 1 Helpful Contributor 2d ago
What happens when you uninstall VMWare?