How to Fix error 5 Error – Unable to enable Virtual Machine Platform – DISM error
Docker Desktop installation error 5 Access Denied when enabling Virtual Machine Platform and WSL on Windows 11.
📋 Table of Contents
The error 'Access is denied' when trying to enable Virtual Machine Platform using PowerShell or installing WSL on Windows 11 occurs due to a lack of administrative privileges or incorrect permissions. This issue often arises when the user account running the command does not have sufficient rights to access and modify system-level features.
⚠️ Common Causes
- Running PowerShell as a standard user account instead of an administrator account.
- A corrupted system file or registry key causing the Virtual Machine Platform feature to be inaccessible.
- Insufficient disk space or available memory, leading to resource constraints that prevent the feature from being enabled.
🛠️ Step-by-Step Verified Fixes
Method 1: Run PowerShell as Administrator
- Step 1: Open PowerShell and right-click on the command prompt to select 'Run as administrator'.
- Step 2: Run the DISM command again, ensuring you are still logged in with administrative privileges.
- Step 3: Verify that the Virtual Machine Platform feature has been successfully enabled.
Method 2: Use the Built-in Disable and Re-enable Feature
- Step 1: Open PowerShell as an administrator.
- Step 2: Run the following command: `dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart` to disable and then re-enable the Virtual Machine Platform feature.
Method 3: Use the Registry Editor
- Step 1: Open the Registry Editor by typing `regedit` in the Run dialog box (Windows key + R).
- Step 2: Navigate to the following registry path: HKEY_LOCAL_MACHINE/system equestedPlatformDocks
- Step 3: Create a new DWORD value named 'VirtualMachinePlatform' and set its value to 1.
💡 Conclusion
By following these steps, you should be able to successfully enable the Virtual Machine Platform feature and resolve the 'Access is denied' error when installing WSL or Docker Desktop on Windows 11.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat