You are currently offline, waiting for your internet to reconnect

DISM /Apply-Image command fails with error code 5 (ERROR_ACCESS_DENIED)

Symptoms
Consider the following scenario:
  • You have a Windows 10 1607 image.
  • You enable the Windows Subsystem for Linux (WSL) feature.
  • You download and install Ubuntu package by using the command that's documented here.
  • You capture the Windows 10 1607 image by using the DISM /Capture-Image command.
  • You try to apply the captured Windows 10 1607 image by using the DISM /Apply-Image command.
In this scenario, the DISM /Apply-Image command fails with error code 5 (ERROR_ACCESS_DENIED).
Cause
The files that are installed by the Ubuntu package may cause DISM /Apply-Image to fail.
Workaround
Do not download and install the Ubuntu package before you capture the Windows 10 1607 image by using the DISM /Capture-Image command. The Ubuntu package can be downloaded and installed after the Windows 10 1607 image is applied to a device. You can install the Ubuntu package by following the steps in this installation guide.
More information
For more information about Windows Subsystem for Linux, see Frequently Asked Questions. For more information about DISM imaging commands, see DISM Image Management command-line options.
Properties

Article ID: 3179598 - Last Review: 07/26/2016 00:54:00 - Revision: 4.0

Windows 10 Version 1607

  • KB3179598
Feedback