DISM image split incorrect parameter error

Jan U 21 Reputation points
2020-11-06T13:52:34.207+00:00

I am following this tutorial about capturing a Windows 10 IoT Enterprise image. After properly preparing a USB drive, I inserted it into my IoT device. Upon booting, I selected the correct USB drive and I'm currently in my administrative command prompt (X:\windows\system32\cmd.exe).

The command dism /capture-image /imagefile:C:\IoTOS.wim /CaptureDir:C:\ /Name:"Windows 10 IoT Enterprise" succeeds, and looking at the contents of the C:\ drive, IoTOS.wim does indeed exist.

However, the DISM command to split the image into 4 GB chunks keeps failing. I first checked which USB drive I prepped to allow WinPE and executed dism /Split-Image /ImageFile:C:\IoTOS.wim /SWMFile:F:\IoTOS.swm /FileSize:4000 accordingly, but I keep getting error 87 saying that The parameter is incorrect, without specifying which parameter is incorrect.

Unfortunately, I cannot copy and paste the dism logs into this question, but it looks like the most important errors and warnings are the following:

  • DISM Provider Store: PID=1784 TID=1764 Failed to load the provider: X:\Windows\System32\Dism\SiloedPackageProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  • DISM Provider Store: PID=1784 TID=1764 Failed to load the provider: X:\Windows\System32\Dism\MetaDeployProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
  • DISM WIM Provider: PID=1784 TID=1764 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:1628 - CWimManager::SplitFile(hr:0x80070057)
  • DISM Imaging Provider: PID=1784 TID=1764 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2722 - CGenericImagingManager::InternalCmdWimSplit(hr:0x80070057)
  • DISM Imaging Provider: PID=1784 TID=1764 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:537 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070057)

The first error also showed up when capturing the image (dism /capture-image ...), but the other ones only occur when I try to split the image.

I downloaded the deployment and imaging tools with the WinPE add-on (Windows ADK) from the Microsoft website according to these earlier instructions.

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,965 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sean Liming 4,601 Reputation points
    2020-11-06T16:47:19.097+00:00

    Normally, when I capture a C drive to a WIM file, I don't save it to the C drive that I am capture, but I save it to other drive like the USB flash disk.

    You have the location for the swm files set to F drive: /SWMFile:F:\IoTOS.swm. Does F drive exist? Is this your USB flash drive? Sometimes drive letters get different assignments in WinPE. Set this to c:\<some folder in c>\IoTOS.swm instead and see if the error appears again.


  2. Yann ARNAUD 1 Reputation point
    2022-07-20T12:48:17.707+00:00

    Hi,
    Do not forget to write the path of the files between brackets. I think this is the reason of your error 87.
    ex: dism /Split-Image /ImageFile:"**C:\IoTOS.wim"** /SWMFile:"**F:\IoTOS.swm"** /FileSize:4000

    Hope it will help :)

    0 comments No comments

  3. 志锋 刘 0 Reputation points
    2023-01-26T15:40:35.3633333+00:00

    I have the same issure with you. can you tell me how do you salve it ?

    and my computer` system is window 10 now . I want set it window 7

    so : (Dism /Split-Image /ImageFile:D:\IMI\install.wim /SWMFile:D:\imi1install.swm /FileSize:5000 /CheckIntegrity ) will error ,

    same issure !

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.