none
使用windows AIK的部署工具命令,到安装映像安装不了 错误:5 RRS feed

  • 问题

  • 部署映像服务和管理工具

    版本:6.1.7600.16385

    正在安装映像

    [=============      26.0%

    错误:5

    Access is denied.

    可以在C:\windows\Logs\DISM\dism.log上找到DISM日志文件

    日志内容:

    2015-03-02 20:13:22, Info                  DISM   PID=7460 Scratch directory set to 'C:\Users\MICROS~1\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2015-03-02 20:13:22, Info                  DISM   PID=7460 Successfully loaded the ImageSession at "C:\Program Files\Windows AIK\Tools\x86\Servicing" - CDISMManager::LoadImageSession
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Failed to get and initialize the PE Provider.  Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Manager: PID=7460 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: 
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: 
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=x86, Number of processors=4
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Executing command line: Dism  /Mount-Wim /Wimfile:D:\mywinpe\ISO\sources\boot.wim /index:1 /MountDir:D:\mywinpe\mount
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Loading Provider from location C:\Program Files\Windows AIK\Tools\x86\Servicing\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\x86\Servicing\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Loading Provider from location C:\Program Files\Windows AIK\Tools\x86\Servicing\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\x86\Servicing\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Loading Provider from location C:\Program Files\Windows AIK\Tools\x86\Servicing\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Connecting to the provider located at C:\Program Files\Windows AIK\Tools\x86\Servicing\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: WimManager
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2015-03-02 20:13:22, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Getting Provider WimManager - CDISMProviderStore::GetProvider
    2015-03-02 20:13:22, Info                  DISM   DISM Provider Store: PID=7460 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2015-03-02 20:13:28, Error                 DISM   DISM WIM Provider: PID=7460 Failed to mount the image. - CWimImageInfo::Mount(hr:0x80070005)
    2015-03-02 20:13:28, Error                 DISM   DISM WIM Provider: PID=7460 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:999 - CWimManager::InternalOpMount(hr:0x80070005)
    2015-03-02 20:13:28, Error                 DISM   DISM WIM Provider: PID=7460 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2247 - CWimManager::InternalCmdMount(hr:0x80070005)
    2015-03-02 20:13:28, Error                 DISM   DISM WIM Provider: PID=7460 Error executing command - CWimManager::InternalExecuteCmd(hr:0x80070005)
    2015-03-02 20:13:28, Error                 DISM   DISM WIM Provider: PID=7460 d:\w7rtm\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:516 - CWimManager::ExecuteCmdLine(hr:0x80070005)
    2015-03-02 20:13:28, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2015-03-02 20:13:28, Info                  DISM   DISM.EXE: 
    2015-03-02 20:13:28, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2015-03-02 20:13:28, Info                  DISM   DISM.EXE: 
    2015-03-02 20:13:28, Info                  DISM   DISM Image Session: PID=7460 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2015-03-02 20:13:28, Info                  DISM   DISM Provider Store: PID=7460 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2015-03-02 20:13:28, Info                  DISM   DISM Provider Store: PID=7460 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2015-03-02 20:13:28, Info                  DISM   DISM Provider Store: PID=7460 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2015-03-02 20:13:28, Info                  DISM   DISM Provider Store: PID=7460 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2015-03-02 20:13:28, Info                  DISM   DISM Provider Store: PID=7460 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider

    权限是正确的!

    2015年3月3日 13:17

答案

  • 您 好,

    》》权限是正确的!

    请您 检查  每个盘的 (包括 C 盘)  NTFS 权限 。

    确保运行 DISM 的帐户属于  administrators 组。

    也请尝试 关闭  UAC 然后 运行  DISM 看 是否 成功 。

    谢谢


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com .


    2015年3月5日 4:33