SCCM 2012 R2 - Offline servicing error

While updating images in SCCM 2012R2 to apply recent updates to a windows 8 image, I hit the following errors:
Failed to install update with error code -2146498513
InstallUpdate returned code 0x800f082f
Failed to install update with ID 17242935 on the image. ErrorCode = 2095

To fix:

Mount the image (.wim) file using dism:
dism /mount-wim /wimfile:d:\sources\os\captures\w8x86.wim /index:2 /mountdir:c:\mount

Load the registry SOFTWARE key
reg load HKLM\MyKey c:\mount\windows\system32\config\software

Find the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Compnent Based Servicing\SessionsPending
Edit the DWORD Exclusives to value 0 (in my case it was 3)

unload the registry
reg unload HKLM\MyKey
commit the changes to the wim
dism /unmount-wim /mountdir:c:\mount /commit
In SCCM, schedule the updates.

Key an eye on the OfflineServicingMgr log file - you might need to do the same again.



Links
DISM mounting http://msdn.microsoft.com/en-us/library/ff794819.aspx
Editing the wim registry http://blogs.technet.com/b/doxley/archive/2007/12/13/editing-the-registry-of-your-wim-without-having-to-recapture.aspx
Offline servicing failed http://social.technet.microsoft.com/Forums/en-US/0e474b3e-67e4-409c-acb9-c0db81c17784/sccm-2012-sp1-offline-servicing-failed-errorinstallupdate-returned-code-0x800f082f?forum=configmanagerosd

Comments

  1. Worked like a charm thank you.

    ReplyDelete
  2. This just solved my longest standing SCCM issue... Thank you, thank you, thank you!

    ReplyDelete
  3. Excellent, dispate of need of manual mount time to time for servicing approx. 200 patches.. :)

    ReplyDelete

Post a Comment

Popular posts from this blog

Skype Online and MCOValidationError

Polycom provisioning - and Zoom!