Thank you for the detailed information provided.
Based on the results of both DISM and SFC scans completing successfully with no integrity violations, this indicates that the Windows component store and protected system files are currently healthy. However, the following error encountered when attempting to install WSL or manually create a virtual disk suggests that the issue is related to the system’s Virtual Disk Service or virtualization support stack, which is required to create and mount .vhdx files used by WSL2 and similar virtualization technologies.
To help address this, please try the following steps:
1, Restart Virtual Disk Service
- Press Windows + R, type:
services.msc - Locate Virtual Disk > Right‑click > Select Restart
2, Verify Virtual Disk Provider Driver
- Open Device Manager
- Expand Storage controllers
- Confirm Microsoft Virtual Disk Provider is present
- If listed, right‑click > Uninstall device
- Restart your PC to allow Windows to reinstall the driver automatically
3, Ensure Required Features Are Enabled
- Run the following commands in Administrator PowerShell:
dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- Restart the device after completion.
4, Test Virtual Disk Creation on Local Drive
- After restart, please run:
diskpartcreate vdisk file=C:\test.vhdx maximum=64 type=expandable
Storing the virtual disk on a local drive with full permissions may improve reliability when creating VHD/VHDX files.
Let me know if you need further assistance, feel free to ask me by clicking "Add Comment" or "Add Answer" if you cannot add comment so your response will be visible. Thanks for your effort.
If my response is helpful to you, please click "Accept Answer" and kindly upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.