Applying Drivers Packages Failed (Process completed with exit code 2147500037 = Dism failed with return code -2147467259 )

Hi guy,

I have a problem applying a driver package using OSD. This situation happen with one driver package but work fine for the others drivers packages. I changed the boot image on the task sequence and work fine for this package now. Any idea what can be the cause of this problem ?

Process completed with exit code 2147500037

Dism failed with return code -2147467259

SMSTS.log:

Set command line: "X:\windows\Pkgmgr\dism.exe" /image:"C:" /windir:"WINDOWS" /apply-unattend:"C:\_SMSTaskSequence\PkgMgrTemp\drivers.xml" /logpath:"C:\_SMSTaskSequence\PkgMgrTemp\dism.log"    OSDDriverClient    2013-09-11 2:38:06 PM    1656 (0x0678)
Executing command line: "X:\windows\Pkgmgr\dism.exe" /image:"C:" /windir:"WINDOWS" /apply-unattend:"C:\_SMSTaskSequence\PkgMgrTemp\drivers.xml" /logpath:"C:\_SMSTaskSequence\PkgMgrTemp\dism.log"    OSDDriverClient    2013-09-11 2:38:06 PM    1656 (0x0678)
Process completed with exit code 2147500037    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
uExitCode == 0, HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osddriverclient\sysprepdriverinstaller.cpp,558)    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Dism failed with return code -2147467259    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
AddPnPDriverToStore( pszSource, sTargetSystemDrive, sTargetSystemRoot, wProcessorArchitecture), HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osddriverclient\sysprepdriverinstaller.cpp,668)    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Failed to add driver to driver store. Code 0x80004005    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
InstallDriver( iInstallParams->sContentId, iInstallParams->sSource, iInstallParams->pBootCriticalInfo ), HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osddriverclient\driverinstaller.cpp,557)    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\WRD0072C    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
reference count 1 for the source C:\_SMSTaskSequence\Packages\WRD0072C before releasing    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Delete source directory C:\_SMSTaskSequence\Packages\WRD0072C    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Released the resolved source C:\_SMSTaskSequence\Packages\WRD0072C    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
pDriverInstaller->InstallDriverPackage( sPackageId, pBootCriticalInfo ), HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osddriverclient\osddriverclient.cpp,409)    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Failed to provision driver. Code 0x80004005    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Exiting with return code 0x80004005    OSDDriverClient    2013-09-11 2:38:07 PM    1656 (0x0678)
Process completed with exit code 2147500037    TSManager    2013-09-11 2:38:07 PM    1548 (0x060C)
!--------------------------------------------------------------------------------------------!    TSManager    2013-09-11 2:38:07 PM    1548 (0x060C)
Failed to run the action: Dell PowerEdge R720xd SRV2008R2.
Unspecified error (Error: 80004005; Source: Windows)    TSManager    2013-09-11 2:38:07 PM    1548 (0x060C)
Sending status message . . .    TSManager    2013-09-11 2:38:07 PM    1548 (0x060C)

DISM log

2013-09-11 14:38:07, Info                  CSI    00000002 Shim considered [l:250{125}]"\??\C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\pkgmgr.exe" : got STATUS_SUCCESS
2013-09-11 14:38:07, Info                  CBS    Transactions disabled in registry, continuing without transaction support.
2013-09-11 14:38:07, Info                  CBS    Kernel transactions are disabled, continuing without transaction support.
2013-09-11 14:38:07, Info                  CBS    Failed to find a matching version for servicing stack: C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\ [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2013-09-11 14:38:07, Info                  CBS    Failed to find servicing stack directory in online store. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2013-09-11 14:38:07, Info                  CBS    Must be doing offline servicing, using stack version from: C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\cbscore.dll
2013-09-11 14:38:07, Info                  CBS    Loaded Servicing Stack v6.1.7601.17592 with Core: C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_672ce6c3de2cb17f\cbscore.dll
2013-09-11 14:38:07, Info                  CSI    00000001@2013/9/11:22:38:07.210 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7fef9d9f0ad @0x7fefa109849 @0x7fefa0d34e3 @0x7fefa1e70b9 @0x7fefa1e72a7 @0x7fefa1b8843)
2013-09-11 14:38:07, Info                  CBS    Could not load SrClient DLL from path: SrClient.dll.  Continuing without system restore points.
2013-09-11 14:38:07, Info                  CSI    00000002@2013/9/11:22:38:07.225 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7fef9d9f0ad @0x7fefa156816 @0x7fefa122aac @0x7fefa0d35b9 @0x7fefa1e70b9 @0x7fefa1e72a7)
2013-09-11 14:38:07, Info                  DISM   DISM Package Manager: PID=1952 Loaded servicing stack for offline use only. - CDISMPackageManager::RefreshInstanceAndLock
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: SOFTWARE, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SOFTWARE' from path '\\?\C:\Windows\System32\config\SOFTWARE'.
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: SYSTEM, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SYSTEM' from path '\\?\C:\Windows\System32\config\SYSTEM'.
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: SECURITY, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SECURITY' from path '\\?\C:\Windows\System32\config\SECURITY'.
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: SAM, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SAM' from path '\\?\C:\Windows\System32\config\SAM'.
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: COMPONENTS, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/COMPONENTS' from path '\\?\C:\Windows\System32\config\COMPONENTS'.
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: DEFAULT, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/DEFAULT' from path '\\?\C:\Windows\System32\config\DEFAULT'.
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: ntuser.dat, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Users/default/ntuser.dat' from path '\\?\C:\Users\default\ntuser.dat'.
2013-09-11 14:38:07, Info                  CBS    Loading offline registry hive: schema.dat, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/system32/smi/store/Machine/schema.dat' from path '\\?\C:\Windows\system32\smi\store\Machine\schema.dat'.
2013-09-11 14:38:07, Info                  CBS    Failed to load offline schema.dat hive from '\\?\C:\Windows\system32\smi\store\Machine\schema.dat' into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/system32/smi/store/Machine/schema.dat'. [HRESULT = 0x80070020 - ERROR_SHARING_VIOLATION]
2013-09-11 14:38:07, Info                  CBS    Failed to load SMI schema hive [HRESULT = 0x80070020 - ERROR_SHARING_VIOLATION]
2013-09-11 14:38:07, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SOFTWARE
2013-09-11 14:38:07, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2013-09-11 14:38:07, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SYSTEM
2013-09-11 14:38:07, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2013-09-11 14:38:07, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SECURITY
2013-09-11 14:38:07, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2013-09-11 14:38:07, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SAM
2013-09-11 14:38:07, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2013-09-11 14:38:07, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/COMPONENTS
2013-09-11 14:38:07, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2013-09-11 14:38:07, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/DEFAULT
2013-09-11 14:38:07, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2013-09-11 14:38:07, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Users/default/ntuser.dat
2013-09-11 14:38:07, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Users/default/ntuser.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2013-09-11 14:38:07, Error                 CBS    Failed to load offline store from boot directory: '\\?\C:\' and windows directory: '\\?\C:\Windows\' [HRESULT = 0x80070020 - ERROR_SHARING_VIOLATION]
2013-09-11 14:38:07, Error                 CBS    Failed to initialize store parameters with boot drive: C:\ and windows directory: C:\Windows [HRESULT = 0x80070020 - ERROR_SHARING_VIOLATION]
2013-09-11 14:38:07, Error                 DISM   DISM Package Manager: PID=1952 Failed initializing the session - CDISMPackageManager::RefreshInstanceAndLock(hr:0x80070020)
2013-09-11 14:38:07, Error                 DISM   DISM Package Manager: PID=1952 Failed doing internal initialization - CDISMPackageManager::Initialize(hr:0x80070020)
2013-09-11 14:38:07, Warning               DISM   DISM Provider Store: PID=1952 Failed to call Initialize method on IDismServicingProvider Interface - CDISMProviderStore::Internal_LoadProvider(hr:0x80070020)
2013-09-11 14:38:07, Warning               DISM   DISM Provider Store: PID=1952 Failed to Load the provider: C:\_SMSTaskSequence\PkgMgrTemp\1807A0F0-801B-4661-BB27-C497AA8E1C11\CbsProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x80070020)
2013-09-11 14:38:07, Info                  DISM   DISM Provider Store: PID=1952 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2013-09-11 14:38:07, Info                  DISM   DISM Provider Store: PID=1952 Loading Provider from location C:\_SMSTaskSequence\PkgMgrTemp\1807A0F0-801B-4661-BB27-C497AA8E1C11\MsiProvider.dll - CDISMProviderStore::Internal_GetProvider
  • Edited by robeglez Friday, September 13, 2013 8:14 PM
September 13th, 2013 10:59pm

Hi,

The dism log demonstrates that the schema.dat was locked when loading offline schema.dat hive. The reason might be the versions of DISM.

You can boot into PE to add drivers to an offline image by using DISM. Then, you can compare the log files between different boot images. The log files path can be designated by /LogPath.

To add drivers to an offline image by using DISM:

http://technet.microsoft.com/en-us/library/hh825070.aspx

Best Regards,

Joyce Li

Free Windows Admin Tool Kit Click here and download it now
September 16th, 2013 3:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics