Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

DISM /Mount-wim error: 5 Access Denied.

Avatar of RobertHSWUK
RobertHSWUKFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Legacy OSWindows 7
15 Comments1 Solution35644 ViewsLast Modified:
Hi,

I am trying to mount a wim file to a folder using the dism command:

 
dism /mount-wim /wimfile:c:\wim\base.wim /index:1 /mountdir:c:\mount

but it is coming back with the following error:

 
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385


Error: 5

Access is denied.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

The dism command is being run from an elevated command prompt, the account is a local admin on the machine (W7, SP1)

I have checked the file permissions on both the folder containing the WIM file and the folder I am trying to mount to, both have full control for SYSTEM account. I have also tried adding full control for EVERYONE but this made no difference.

Extract from dism.log:

 
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: 
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7601, Running architecture=amd64, Number of processors=4
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Executing command line: dism  /mount-wim /wimfile:c:\wim\base.wim /index:1 /mountdir:c:\mount
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Loading Provider from location C:\Windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Connecting to the provider located at C:\Windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Loading Provider from location C:\Windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Connecting to the provider located at C:\Windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
2011-06-17 11:12:08, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Getting Provider WimManager - CDISMProviderStore::GetProvider
2011-06-17 11:12:08, Info                  DISM   DISM Provider Store: PID=4236 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2011-06-17 11:12:09, Error                 DISM   DISM WIM Provider: PID=4236 Failed to mount the image. - CWimImageInfo::Mount(hr:0x80070005)
2011-06-17 11:12:09, Error                 DISM   DISM WIM Provider: PID=4236 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:999 - CWimManager::InternalOpMount(hr:0x80070005)
2011-06-17 11:12:09, Error                 DISM   DISM WIM Provider: PID=4236 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2247 - CWimManager::InternalCmdMount(hr:0x80070005)
2011-06-17 11:12:09, Error                 DISM   DISM WIM Provider: PID=4236 Error executing command - CWimManager::InternalExecuteCmd(hr:0x80070005)
2011-06-17 11:12:09, Error                 DISM   DISM WIM Provider: PID=4236 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:516 - CWimManager::ExecuteCmdLine(hr:0x80070005)
2011-06-17 11:12:09, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2011-06-17 11:12:09, Info                  DISM   DISM.EXE: 
2011-06-17 11:12:09, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
2011-06-17 11:12:09, Info                  DISM   DISM.EXE: 
2011-06-17 11:12:09, Info                  DISM   DISM Image Session: PID=4236 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
2011-06-17 11:12:09, Info                  DISM   DISM Provider Store: PID=4236 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
2011-06-17 11:12:09, Info                  DISM   DISM Provider Store: PID=4236 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
2011-06-17 11:12:09, Info                  DISM   DISM Provider Store: PID=4236 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
2011-06-17 11:12:09, Info                  DISM   DISM Provider Store: PID=4236 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
2011-06-17 11:12:09, Info                  DISM   DISM Provider Store: PID=4236 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider

Any ideas?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Adam Leinss
Adam LeinssFlag of United States of America imageSystems Administrator

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answers