none
Ошибка 5 при интегрировании драйверов в install.wim через команды DISM (hr:0x80070005) RRS feed

  • Вопрос

  • Здравствуйте.
    Столкнулся с проблемой, Майкрософт написана статья "Update to add native driver support in NVM Express in Windows 7 and Windows Server 2008 R2" в ней подробно описаны действия для подготовки установочной версии Windows 7 для установки на PCIe M.2 накопитель. Я скачал с сайта Майкрософт образ Windows7 с интегрированным SP1
    Сделал все как указано в статье, подготовил папки, хотфиксы и драйвера от Samsung 950Pro M.2 PCIe. При добавлении хотфиксов и драйверов в boot.wim /Index:1  и boot.wim /Index:2 нет проблем. А вот при

    dism /Mount-Image /ImageFile:c:\temp\src\sources\install.wim /Index:4 /MountDir:c:\temp\mount

    и последующей команды

    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse /ForceUnsigned

    Драйвера не устанавливаются - ошибка 5 отказано в доступе. Хотя перед ней были успешно добавлены три хотфикса. Пробовал и один драйвер и несколько ошибка 5 и все тут.

    Вот что выдаёт лог DISM

    2016-04-01 07:33:00, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Edition Manager.
    2016-04-01 07:33:00, Info                  DISM   DISM Provider Store: PID=4524 Getting Provider DriverManager - CDISMProviderStore::GetProvider
    2016-04-01 07:33:00, Info                  DISM   DISM Provider Store: PID=4524 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver c:\temp\drivers\HP_NVME\nvme.inf is boot-critical. - CDriverPackage::FillInPackageDetails
    2016-04-01 07:33:00, Info                         IsDriverPackageSigned: File [c:\temp\drivers\HP_NVME\nvme.inf] is signed by a catalog [c:\temp\drivers\HP_NVME\nvme.cat]
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Signature status of driver c:\temp\drivers\HP_NVME\nvme.inf is: SIGNED - CDriverPackage::InitSignatureStatus
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver c:\temp\drivers\Official_1\nvme.inf is boot-critical. - CDriverPackage::FillInPackageDetails
    2016-04-01 07:33:00, Info                         IsDriverPackageSigned: File [c:\temp\drivers\Official_1\nvme.inf] is signed by a catalog [c:\temp\drivers\Official_1\nvme.cat]
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Signature status of driver c:\temp\drivers\Official_1\nvme.inf is: SIGNED - CDriverPackage::InitSignatureStatus
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver c:\temp\drivers\Official_2\nvme.inf is boot-critical. - CDriverPackage::FillInPackageDetails
    2016-04-01 07:33:00, Info                         IsDriverPackageSigned: File [c:\temp\drivers\Official_2\nvme.inf] is signed by a catalog [c:\temp\drivers\Official_2\nvme.cat]
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Signature status of driver c:\temp\drivers\Official_2\nvme.inf is: SIGNED - CDriverPackage::InitSignatureStatus
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver c:\temp\drivers\Official_3\nvme.inf is boot-critical. - CDriverPackage::FillInPackageDetails
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Signature status of driver c:\temp\drivers\Official_3\nvme.inf is: UNSIGNED - CDriverPackage::InitSignatureStatus
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver c:\temp\drivers\Official_4\nvme.inf is boot-critical. - CDriverPackage::FillInPackageDetails
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Signature status of driver c:\temp\drivers\Official_4\nvme.inf is: UNSIGNED - CDriverPackage::InitSignatureStatus
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver c:\temp\drivers\Official_5\nvme.inf is boot-critical. - CDriverPackage::FillInPackageDetails
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Signature status of driver c:\temp\drivers\Official_5\nvme.inf is: UNSIGNED - CDriverPackage::InitSignatureStatus
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver c:\temp\drivers\Official_6\nvme.inf is boot-critical. - CDriverPackage::FillInPackageDetails
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Signature status of driver c:\temp\drivers\Official_6\nvme.inf is: UNSIGNED - CDriverPackage::InitSignatureStatus
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\HP_NVME\nvme.inf'. - CDmiDriverStore::Import(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\HP_NVME\nvme.inf'. - CDriverPackage::InternalInstall(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver package c:\temp\drivers\HP_NVME\nvme.inf failed to install. (hr:0x80070005). - CDriverManager::AddDriverPackagesFromCollection
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_1\nvme.inf'. - CDmiDriverStore::Import(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_1\nvme.inf'. - CDriverPackage::InternalInstall(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver package c:\temp\drivers\Official_1\nvme.inf failed to install. (hr:0x80070005). - CDriverManager::AddDriverPackagesFromCollection
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_2\nvme.inf'. - CDmiDriverStore::Import(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_2\nvme.inf'. - CDriverPackage::InternalInstall(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver package c:\temp\drivers\Official_2\nvme.inf failed to install. (hr:0x80070005). - CDriverManager::AddDriverPackagesFromCollection
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_3\nvme.inf'. - CDmiDriverStore::Import(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_3\nvme.inf'. - CDriverPackage::InternalInstall(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver package c:\temp\drivers\Official_3\nvme.inf failed to install. (hr:0x80070005). - CDriverManager::AddDriverPackagesFromCollection
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_4\nvme.inf'. - CDmiDriverStore::Import(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_4\nvme.inf'. - CDriverPackage::InternalInstall(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver package c:\temp\drivers\Official_4\nvme.inf failed to install. (hr:0x80070005). - CDriverManager::AddDriverPackagesFromCollection
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_5\nvme.inf'. - CDmiDriverStore::Import(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_5\nvme.inf'. - CDriverPackage::InternalInstall(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver package c:\temp\drivers\Official_5\nvme.inf failed to install. (hr:0x80070005). - CDriverManager::AddDriverPackagesFromCollection
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_6\nvme.inf'. - CDmiDriverStore::Import(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 Failed to install the driver package 'c:\temp\drivers\Official_6\nvme.inf'. - CDriverPackage::InternalInstall(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:433 - CDriverPackage::Install(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Driver package c:\temp\drivers\Official_6\nvme.inf failed to install. (hr:0x80070005). - CDriverManager::AddDriverPackagesFromCollection
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\drivermanager.cpp:1063 - CDriverManager::Internal_DoAddDriverPackage(hr:0x80070005)
    2016-04-01 07:33:00, Error                 DISM   DISM Driver Manager: PID=4524 d:\w7rtm\base\ntsetup\opktools\dism\providers\dmiprovider\dll\drivermanager.cpp:519 - CDriverManager::ExecuteCmdLine(hr:0x80070005)
    2016-04-01 07:33:00, Info                  DISM   DISM Driver Manager: PID=4524 Further logs for driver related operations can be found in the target operating system at %WINDIR%\inf\setupapi.offline.log - CDriverManager::ExecuteCmdLine
    2016-04-01 07:33:00, Info                  DISM   DISM Image Session: PID=4524 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2016-04-01 07:33:00, Info                  DISM   DISM Provider Store: PID=4524 Finalizing the servicing provider(DISM Package Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SOFTWARE
    2016-04-01 07:33:00, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SYSTEM
    2016-04-01 07:33:00, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SECURITY
    2016-04-01 07:33:00, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SAM
    2016-04-01 07:33:00, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/COMPONENTS
    2016-04-01 07:33:00, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/DEFAULT
    2016-04-01 07:33:00, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Users/default/ntuser.dat
    2016-04-01 07:33:00, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Users/default/ntuser.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2016-04-01 07:33:00, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/temp/mount/Windows/system32/smi/store/Machine/schema.dat
    2016-04-01 07:33:00, Info                  DISM   DISM Package Manager: PID=4524 Finalizing CBS core. - CDISMPackageManager::Finalize

    Запускал Deployment and Imaging Tools Environment из под Администратора. Антивирус Касперского выгружал, защитник Windows отключал. UAC тоже отключен. И одна и та же ошибка. Ради любопытства попробовал выполнить эту процедуру на ноутбуке тоже самое.
    Я даже запускал procmon, что бы посмотреть почему возникает проблема. Сохранил лог в PML файл. А там как раз на процесс

    C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\AMD64\DISM\dism.exe
    Command Line
    dism  /Image:C:\temp\mount /Add-Driver /Driver:C:\temp\drivers /Recurse /ForceUnsigned
    Event
    C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\api-ms-win-downlevel-kernel32-l1-1-0.dll
    Result
    FILE LOCKED WITH ONLY READERS


    Операционная система Windows 7 Ultimate. Cистема DISM Версия: 6.3.9600.17029. Подскажите как быть.

    1 апреля 2016 г. 4:49

Ответы

  • Вопрос снят. Все оказалось до банальности просто. На всех файлах от драйверов стояла блокировка. Т.е. если щёлкнуть по файлу драйвера правой кнопкой, и выбрать свойства то внизу можно увидеть "Этот файл получен с другого компьютера и, возможно, был заблокирован с целью защиты компьютера", блокировки снял и все здорово интегрировалось.
    4 апреля 2016 г. 4:40

Все ответы

  • Посмотрите это:

    http://answers.microsoft.com/ru-ru/windows/forum/windows_7-windows_programs/%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0-5/8881562a-6eac-44ee-9f9d-d4c52323350b?auth=1

    Ошибка 5: Отказано в доступе.       

    http://remontka.pro/0x80070005-access-denied/

    Ошибка 0x80070005 «Отказано в доступе»


    Не ищи Бога, не в камне, не в храме - ищи Бога внутри себя. Ищущий, да обрящет.

    2 апреля 2016 г. 21:28
  • Попробовал и грузится в чистую с вырубанием в автозагрузке всего, и с разных винтов все равно выдаёт ошибку доступа. Но почему тогда хотфиксы устанавливает? Ведь по идее если что то не то с доступом в системе, то и хотфиксы dism добавляться не должны в install.wim, напомню что проблема только с install.wim в boot.wim все прекрасно интегрируется. И странно то, что на ноутбуке на котором стоит Windows 7 x64 Home Premium такая же проблема, точь в точь.
    3 апреля 2016 г. 16:11
  • Вопрос снят. Все оказалось до банальности просто. На всех файлах от драйверов стояла блокировка. Т.е. если щёлкнуть по файлу драйвера правой кнопкой, и выбрать свойства то внизу можно увидеть "Этот файл получен с другого компьютера и, возможно, был заблокирован с целью защиты компьютера", блокировки снял и все здорово интегрировалось.
    4 апреля 2016 г. 4:40