Docker Desktop - Virtual Machine Platform not enabled Virtual Machine Platform is not…
- User
Docker Desktop - Virtual Machine Platform not enabled Virtual Machine Platform is not enabled. Enable it using the following PowerShell script (in an administrative PowerShell) and then restart your computer before using Docker Desktop:
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
querying the Win32OptionalFeature class over WMI: Une exception s’est produite. (Classe non valide )
Assistant
It looks like you're encountering an error when trying to enable the Virtual Machine Platform feature for Docker Desktop. The error message is in French and indicates "An exception occurred. (Invalid class)".
This typically happens when there's an issue with the WMI (Windows Management Instrumentation) query that's trying to check the status of the Windows optional feature.
Here are some alternative steps you can try:
-
Try enabling the feature through Windows Features directly:
- Press Win+R, type "optionalfeatures.exe" and press Enter
- Find and check "Virtual Machine Platform"
- Click OK and restart your computer
-
If that doesn't work, try this alternative PowerShell command (run as administrator):
DISM /Online /Enable-Feature /FeatureName:VirtualMachinePlatform /All -
You might also need to enable Windows Subsystem for Linux:
DISM /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All
After making these changes, restart your computer and try running Docker Desktop again.
Would you like me to explain any of these steps in more detail?
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.