DISM /Apply-Image command fails with error code 5 (ERROR_ACCESS_DENIED)
使用dism /apply-image的时候提示error code5, 是因为capture image的时候保存的image enable了Windows Subsystem for Linux (WSL). 自己遇到了这个问题,记录下。下次capture之前先检查是否enable了WSL.
https://support.microsoft.com/en-us/help/3179598/dism-apply-image-command-fails-with-error-code-5-error-access-denied
检查WSL(Powershell):
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
查看State的状态。如下:
FeatureName : Microsoft-Windows-Subsystem-Linux
DisplayName : Windows Subsystem for Linux
Descrip