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”.
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.
Thank you! Exactly what I needed!
Shoop da Whoop