Dism 错误 0x800f0806
使用下面命令进行组件清理时出错:
dism /image:c:\ /cleanup-image /startcomponentcleanup /scratchdir:c:\ /logpath:z:\dism.log
failed to perform Synchronous Cleanup operation [HRESULT = 0x800f0806 - CBS_E_PENDING]
CBS Received notification that the operation is complete.
CBS Session: 1320_397531 finalized. Reboot required: yes
[HRESULT = 0x800f0806 - CBS_E_PENDING]
如果系统能正常启动,重启应该是可以的。
但是,由于不能正常启动,所以,这个过程无法完成。
那么,只要把 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
下的挂起包和会话全部删除,再把 c:\windows\winsxs\pending.xml 删除,就可进行清理了。