DISM command fails with error code 87 when you try to apply a Windows 10 image

This article provides a solution to the error 87 that occurs when you try to apply a Windows 10 image.

Applies to:   Windows 10 - all editions
Original KB number:   3082581


Consider the following scenario:

  • You have a Windows 10 image.
  • Windows has Compact OS compression enabled on some files.
  • You have an earlier version of DISM (that is, a version from Windows 8.1 or from an earlier version of Windows).
  • You try to apply the Windows 10 image by using the DISM /Apply-Image command.

In this scenario, the command fails with error code 87. Additionally, the DISM log file shows the following error message:

Error DISM DISM WIM Provider: PID=1804 [RestoreReparsePoint:(1332) -> ioctl: setting reparse point tag failed]

C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Runt0d283adf#\9766308db336f6018797df6128270717\System.Runtime.WindowsRuntime.ni.dll (HRESULT=0x80070057) - CWimManager::WimProviderMsgLogCallback


To apply a Windows 10 image, you must use the Windows 10 version of DISM. This version requires the Wofadk.sys filter driver.


The Wofadk.sys filter driver is included in the Windows 10 Assessment and Deployment Kit (ADK). The driver must be installed and configured to be used with Window 10 DISM when the command runs on an earlier version of Windows host or Windows Preinstallation Environment (Windows PE).


Use the Windows 10 version of DISM with Wofadk.sys filter driver. For more information, see DISM Supported Platforms and Copy DISM to Another Computer.

More information

For more information about Compact OS compression, see Compact OS, single-instancing, and image optimization. In that article, see the "To deploy Windows using a WIM file section for more information about how to deploy Windows by using a WIM file.

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for deployment-related issues.