How to resolve SCCM Offline Servicing: Failed to apply one or more updates

I’ve been using the RTM-iso of Windows Server 2012 R2 for OS Deployment for a few years now. Everything was working fine, although the update installation part was getting time-consuming. I decided to slipstream all updates using the built-in Offline Servicing feature in SCCM. However, I ran into the error “Failed to apply one or more updates”.

SCCM_Offline_Servicing_Failed_to_Apply_One_or_More_updates

To troubleshoot this issue, we examined OfflineServicingMgr.log (located on your Site Server in the System Center Configuration Manager install directory):

1 Schedule(s) are marked for RunNow by the administrator
1 Schedule(s) are scheduled to be run at this time
Processing started for Schedule with ID 16777229
STATMSG: ID=7900 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=sccm.domain.LOCAL SITE=SCC PID=8748 TID=5200 GMTDATE=Thu May 12 13:36:30.302 2016 ISTR0="16777229" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
Deleting \\?\D:\ConfigMgr_OfflineImageServicing\ImageMountDir\Windows\WinSxS, FAILED, Win32 Error = 5
Failed to remove previously existing staging folder D:\ConfigMgr_OfflineImageServicing\, GLE = 5
Initialization of schedule processing failed
Processing completed for Schedule with ID 16777229
STATMSG: ID=7910 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_OFFLINE_SERVICING_MANAGER" SYS=sccm.domain.LOCAL SITE=SCC PID=8748 TID=5200 GMTDATE=Thu May 12 13:36:30.403 2016 ISTR0="16777229" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
Deleting \\?\D:\ConfigMgr_OfflineImageServicing\ImageMountDir\Windows\WinSxS, FAILED, Win32 Error = 5
Failed to remove the staging folder D:\ConfigMgr_OfflineImageServicing, GLE = 5
Schedule processing thread stopped

I quickly identified the problem: the previous attempt to update the WIM-image had failed, and the DISM-process was unable to unmount the image. To resolve this issue, I opened an Command Prompt and ran the following command:
dism.exe /cleanup-wim
This command succesfully unmounted the image. From this point, I could re-schedule the updates for the WIM-image in SCCM.
SCCM_Unmount_Image_DISM

0 0 votes
Article Rating
Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Mike

Thank you! Exactly what I needed!

Bilbo

Shoop da Whoop

2
0
Would love your thoughts, please comment.x
()
x