Answered by:
Cannot Mount WIM file with Dism (error 87)

Question
-
I am trying to mount a WIM file to add some drivers to an image. This is the command I used:
Dism /Mount-Wim /WimFile:install.wim /Index:1 /MountDir:c:\mount
I keep getting this error when I run this command.
Deployment Image Servicing and Management tool Version: 6.1.7601.17514 Error: 87 The mount-wim option is unknown. For more information, refer to the help by running DISM.exe /?. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
This is the relevant information from the dism log:
2013-02-05 13:36:03, Info DISM DISM.EXE: <----- Starting Dism.exe session -----> 2013-02-05 13:36:03, Info DISM DISM.EXE: 2013-02-05 13:36:03, Info DISM DISM.EXE: Host machine information: OS Version=6.1.7601, Running architecture=amd64, Number of processors=2 2013-02-05 13:36:03, Info DISM DISM.EXE: Executing command line: Dism /mount-wim /wimfile:install.wim /Index:1 /MountDir:c:\Mount 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Loading Provider from location C:\Users\mero\Desktop\ISO Images\win7_sp1_64bit\sources\WimProvider.dll - CDISMProviderStore::Internal_GetProvider 2013-02-05 13:36:03, Warning DISM DISM Provider Store: PID=3852 Failed to Load the provider: C:\Users\mero\Desktop\ISO Images\win7_sp1_64bit\sources\WimProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Loading Provider from location C:\Users\mero\Desktop\ISO Images\win7_sp1_64bit\sources\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Connecting to the provider located at C:\Users\mero\Desktop\ISO Images\win7_sp1_64bit\sources\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Loading Provider from location C:\Users\mero\Desktop\ISO Images\win7_sp1_64bit\sources\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider 2013-02-05 13:36:03, Info DISM DISM Provider Store: PID=3852 Connecting to the provider located at C:\Users\mero\Desktop\ISO Images\win7_sp1_64bit\sources\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2013-02-05 13:36:03, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table. 2013-02-05 13:36:03, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager 2013-02-05 13:36:03, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider 2013-02-05 13:36:03, Info DISM DISM.EXE: Attempting to add the commands from provider: Compatibility Manager 2013-02-05 13:36:03, Info DISM DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager. 2013-02-05 13:36:03, Warning DISM DISM.EXE: Failed to load WimManager. Try running from the Deployment Tools Command Prompt. If the issue persists, ensure that wimgapi.dll and wimserv.exe are up to date. 2013-02-05 13:36:03, Warning DISM DISM.EXE: Failed to add any commands. 2013-02-05 13:36:03, Error DISM DISM.EXE: No providers were found that support the command(mount-wim). HRESULT=0 2013-02-05 13:36:03, Info DISM DISM.EXE: Image session has been closed. Reboot required=no. 2013-02-05 13:36:03, Info DISM DISM.EXE: 2013-02-05 13:36:03, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->
I'm not sure what is wrong here. I am following the steps directly from this article: http://technet.microsoft.com/en-us/library/dd744355%28v=ws.10%29.aspx#AddDriverDISM and I ensured I am using the Deployment Tools command line in administrator mode.
Can anyone please advise?
Tuesday, February 5, 2013 7:10 PM
Answers
-
What do you see when you run "dism.exe /?" from the deployment tools command line? Can you try uninstalling, rebooting, and reinstalling WAIK ensuring you use the Windows 7 WAIK? The one line, 6th from the bottom, mentions possible out of date dll so ensure you are using the latest WAIK version from here:
http://www.microsoft.com/en-us/download/details.aspx?id=5753
Be kind and Mark as Answer if I helped.
- Marked as answer by tracycai Monday, February 11, 2013 8:20 AM
Wednesday, February 6, 2013 5:49 AM
All replies
-
What do you see when you run "dism.exe /?" from the deployment tools command line? Can you try uninstalling, rebooting, and reinstalling WAIK ensuring you use the Windows 7 WAIK? The one line, 6th from the bottom, mentions possible out of date dll so ensure you are using the latest WAIK version from here:
http://www.microsoft.com/en-us/download/details.aspx?id=5753
Be kind and Mark as Answer if I helped.
- Marked as answer by tracycai Monday, February 11, 2013 8:20 AM
Wednesday, February 6, 2013 5:49 AM -
Hi at long time...
But, I solved this "Error 87" in this way:
- By the log, you need another files, aditional to DISM; like "wimgapi.dll" or "wimserv.exe".
- Because I install DISM "by hand" (first using '/a' switch with MSIexec, and then copy files), then get DISM files, but there is not those aditional files.
- Those extra files exists in 'imagex' folder, that is located in "Tools\x86" in my deployed WAIK using switch '/a'. The hot point is take those extra files from "imagex" and copy where "DISM" is installed. And all OK.
Some extra note:: Because I use 'imagex' before DISM, as previous step I execute this:
d:> WimMountInstall.exe /install
And excuse my English.
=)
Saturday, November 1, 2014 1:29 AM -
I had same problem; my solutions after diging though the help is listed bellow; not sure when they changed the command options but that solved it for me. I am using dism version 6.1.7600.16385 that I downloaded from microsoft on 12/24/2014
Dism /mount-wim /wimfile:install.wim /mountdir:d:\mount /index:1
- Proposed as answer by amigo.cgn Monday, October 22, 2018 9:08 PM
Thursday, December 25, 2014 12:27 AM -
Thats the right solution. Thanks for that!!!Monday, October 22, 2018 9:08 PM