SplinteredEdge Posted November 23, 2012 Posted November 23, 2012 I had some questions for the community. MFSN is one of my favorite sources for this kind of content so I'm sure my question should be at home here. I have attached my very recently written PowerShell script using DISM to service an Offline Windows 8 Pro Image using the 64-Bit DISM found in the new Microsoft Windows 8 ADK.Most things *seem* to working correctly with the script however I cannot run the DISM Cleanup function on the modified offline image after servicing the image. I used Install_WIM_Tweak to unhide specific packages to avoid issues with any unremoved packages. I wonder if there might be an issue with the cleanup command after running INSTALL_WIM_TWEAK. Any Suggestions as to how to get cleanup command to work properly? I PowerShell Dism Script attached at the bottom of this post.The Script has a few simple Steps:1.] Mount the Install.wim = SUCCESS2.] Enables NET3 Feature = SUCCESS3.] Unhide Specific Packages with INSTALL_WIM_TWEAK = SUCCESS3.] Remove Specific APPx Apps = SUCCESS5.] Remove Specific Features = SUCCESS6.] Remove Specific Packages = SUCCESS7.] UnMount and Commit the WIM = SUCCESS8.] Remount and Cleanup the image [/Cleanup-Image /StartComponentCleanup] = FAILEDDISM OUTPUT [showing Output from cleanup command]PS> Z:\WIN8TOOLS\DISM\DISM.EXE /Image:$DIRMOUNT /ScratchDir:$DIRSCRATCH /English /Cleanup-Image /StartComponentCleanupDeployment Image Servicing and Management toolVersion: 6.2.9200.16384Image Version: 6.2.9200.16384[===== 10.0% ]Error: 0x800f0806DISM failed. No operation was performed. For more information, review the log file.The DISM log file can be found at C:\Windows\Logs\DISM\dism.logDISM LOG [showing log from cleanup command]2012-11-23 00:43:37, Info DISM DISM.EXE: <----- Starting Dism.exe session ----->2012-11-23 00:43:37, Info DISM DISM.EXE: 2012-11-23 00:43:37, Info DISM DISM.EXE: Host machine information: OS Version=6.1.7601, Running architecture=amd64, Number of processors=22012-11-23 00:43:37, Info DISM DISM.EXE: Dism.exe version: 6.2.9200.163842012-11-23 00:43:37, Info DISM DISM.EXE: Executing command line: "Z:\WIN8TOOLS\DISM\DISM.EXE" /Image:Y:\MOUNT /Cleanup-Image /StartComponentCleanup2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Loading Provider from location Z:\WIN8TOOLS\DISM\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Connecting to the provider located at Z:\WIN8TOOLS\DISM\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Loading Provider from location Z:\WIN8TOOLS\DISM\WimProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Connecting to the provider located at Z:\WIN8TOOLS\DISM\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Loading Provider from location Z:\WIN8TOOLS\DISM\VHDProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Connecting to the provider located at Z:\WIN8TOOLS\DISM\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Loading Provider from location Z:\WIN8TOOLS\DISM\ImagingProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Connecting to the provider located at Z:\WIN8TOOLS\DISM\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Loading Provider from location Z:\WIN8TOOLS\DISM\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Connecting to the provider located at Z:\WIN8TOOLS\DISM\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:37, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.2012-11-23 00:43:37, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider2012-11-23 00:43:37, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager2012-11-23 00:43:37, Info DISM DISM.EXE: Attempting to add the commands from provider: WimManager2012-11-23 00:43:37, Info DISM DISM.EXE: Succesfully registered commands for the provider: WimManager.2012-11-23 00:43:37, Info DISM DISM.EXE: Attempting to add the commands from provider: VHDManager2012-11-23 00:43:37, Info DISM DISM.EXE: Attempting to add the commands from provider: GenericImagingManager2012-11-23 00:43:37, Info DISM DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.2012-11-23 00:43:37, Info DISM DISM.EXE: Attempting to add the commands from provider: Compatibility Manager2012-11-23 00:43:37, Info DISM DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.2012-11-23 00:43:37, Info DISM DISM Provider Store: PID=1396 TID=476 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection[1396] ImageUnmarshallHandle: Reconstituting wim at Z:\WIN8\SOURCES\INSTALL2.WIM.[1396] ImageUnmarshallHandle: Reconstituting wim at Z:\WIN8\SOURCES\INSTALL2.WIM.2012-11-23 00:43:38, Info DISM DISM Manager: PID=1396 TID=476 physical location path: Y:\MOUNT - CDISMManager::CreateImageSession2012-11-23 00:43:38, Info DISM DISM Manager: PID=1396 TID=476 Copying DISM from "Y:\MOUNT\Windows\System32\Dism" - CDISMManager::CreateImageSessionFromLocation2012-11-23 00:43:38, Info DISM DISM Manager: PID=1396 TID=476 Successfully loaded the ImageSession at "C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8" - CDISMManager::LoadRemoteImageSession2012-11-23 00:43:38, Info DISM DISM Image Session: PID=1748 TID=2252 Instantiating the Provider Store. - CDISMImageSession::get_ProviderStore2012-11-23 00:43:38, Info DISM DISM Provider Store: PID=1748 TID=2252 Initializing a provider store for the IMAGE session type. - CDISMProviderStore::Final_OnConnect2012-11-23 00:43:38, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:38, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\OSProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:38, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\OSProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:38, Info DISM DISM OS Provider: PID=1748 TID=2252 Defaulting SystemPath to Y:\MOUNT - CDISMOSServiceManager::Final_OnConnect2012-11-23 00:43:38, Info DISM DISM OS Provider: PID=1748 TID=2252 Defaulting Windows folder to Y:\MOUNT\Windows - CDISMOSServiceManager::Final_OnConnect2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Attempting to initialize the logger from the Image Session. - CDISMProviderStore::Final_OnConnect2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\LogProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\LogProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\PEProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Warning DISM DISM Provider Store: PID=1748 TID=2252 Failed to Load the provider: C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\PEProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Getting Provider DISMLogger - CDISMProviderStore::GetProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Info DISM DISM Manager: PID=1396 TID=476 Image session successfully loaded from the temporary location: C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8 - CDISMManager::CreateImageSession2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Getting Provider OSServices - CDISMProviderStore::GetProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Info DISM DISM OS Provider: PID=1748 TID=2252 Setting SystemPath to Y:\MOUNT - CDISMOSServiceManager::SetSystemPath2012-11-23 00:43:40, Info DISM DISM.EXE: Target image information: OS Version=6.2.9200.16384, Image architecture=amd642012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Getting the collection of providers from an image provider store type. - CDISMProviderStore::GetProviderCollection2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\CbsProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\CbsProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:40, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:40, Info DISM DISM Package Manager: PID=1748 TID=2252 Finished initializing the CbsConUI Handler. - CCbsConUIHandler::Initialize2012-11-23 00:43:40, Info CBS Universal Time is: 2012-11-23 05:43:40.3182012-11-23 00:43:40, Info CBS Failed to find a matching version for servicing stack: Y:\MOUNT\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.2.9200.16384_none_622908ad510eb05b\ [HRESULT = 0x80070490 - ERROR_NOT_FOUND]2012-11-23 00:43:40, Info CBS Failed to find servicing stack directory in online store. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]2012-11-23 00:43:40, Info CBS Must be doing offline servicing, using stack version from: Y:\MOUNT\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.2.9200.16384_none_622908ad510eb05b\cbscore.dll2012-11-23 00:43:40, Info CBS Loaded Servicing Stack v6.2.9200.16384 with Core: Y:\MOUNT\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.2.9200.16384_none_622908ad510eb05b\cbscore.dll2012-11-23 00:43:40, Info CSI 00000001@2012/11/23:05:43:40.333 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7fee40d5375 @0x7fee446885e @0x7fee44240cc @0x7fee454e814 @0x7fee454ea09 @0x7fee451bfc6)2012-11-23 00:43:40, Info CBS Could not load SrClient DLL from path: SrClient.dll. Continuing without system restore points.2012-11-23 00:43:40, Info CSI 00000002@2012/11/23:05:43:40.334 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7fee40d5375 @0x7fee44c2b70 @0x7fee4486031 @0x7fee442423f @0x7fee454e814 @0x7fee454ea09)2012-11-23 00:43:40, Info CBS Failed to get key for store object type: 1 [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:40, Info CBS SQM: Failed to get root store object. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:40, Info CBS Failed to send SQM report on scavenging starvation. Continuing... [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:40, Info DISM DISM Package Manager: PID=1748 TID=2252 Loaded servicing stack for offline use only. - CDISMPackageManager::RefreshInstanceAndLock2012-11-23 00:43:40, Info CBS Loading offline registry hive: SOFTWARE, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SOFTWARE' from path '\\?\Y:\MOUNT\Windows\System32\config\SOFTWARE'.2012-11-23 00:43:40, Info CBS Loading offline registry hive: SYSTEM, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SYSTEM' from path '\\?\Y:\MOUNT\Windows\System32\config\SYSTEM'.2012-11-23 00:43:40, Info CBS Loading offline registry hive: SECURITY, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SECURITY' from path '\\?\Y:\MOUNT\Windows\System32\config\SECURITY'.2012-11-23 00:43:40, Info CBS Loading offline registry hive: SAM, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SAM' from path '\\?\Y:\MOUNT\Windows\System32\config\SAM'.2012-11-23 00:43:40, Info CBS Loading offline registry hive: COMPONENTS, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/COMPONENTS' from path '\\?\Y:\MOUNT\Windows\System32\config\COMPONENTS'.2012-11-23 00:43:40, Info CBS Loading offline registry hive: DEFAULT, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/DEFAULT' from path '\\?\Y:\MOUNT\Windows\System32\config\DEFAULT'.2012-11-23 00:43:40, Info CBS Loading offline registry hive: ntuser.dat, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Users/default/ntuser.dat' from path '\\?\Y:\MOUNT\Users\default\ntuser.dat'.2012-11-23 00:43:40, Info CBS Loading offline registry hive: schema.dat, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/system32/smi/store/Machine/schema.dat' from path '\\?\Y:\MOUNT\Windows\system32\smi\store\Machine\schema.dat'.2012-11-23 00:43:41, Info CBS Offline image is: writeable2012-11-23 00:43:41, Info CSI 00000003 CSI Store 3640912 (0x0000000000378e50) initialized2012-11-23 00:43:41, Info CBS Session: 1748_40404750 initialized by client DISM Package Manager Provider.2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=2252 Loaded servicing stack for offline use only. - CDISMPackageManager::RefreshInstanceAndLock2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=2252 Loaded servicing stack for online use only. - CDISMPackageManager::RefreshInstanceAndLock2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\MsiProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\MsiProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\IntlProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\IntlProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\IBSProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\IBSProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\DmiProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\DmiProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info CSI 00000001 Shim considered [l:268{134}]"\??\Y:\MOUNT\Windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.2.9200.16384_none_622908ad510eb05b\pkgmgr.exe" : got STATUS_OBJECT_PATH_NOT_FOUND2012-11-23 00:43:41, Info CSI 00000002 Shim considered [l:262{131}]"\??\Y:\MOUNT\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.2.9200.16384_none_622908ad510eb05b\pkgmgr.exe" : got STATUS_SUCCESS2012-11-23 00:43:41, Info DISM DISM OS Provider: PID=1748 TID=2252 Get the registry path to the SOFTWARE hive located at Y:\MOUNT\Windows\system32\config\SOFTWARE and determine if it is loaded. - CDISMOSServiceManager::DetermineBootDrive2012-11-23 00:43:41, Info DISM DISM Driver Manager: PID=1748 TID=2252 Further logs for driver related operations can be found in the target operating system at %WINDIR%\inf\setupapi.offline.log - CDriverManager::Initialize2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\UnattendProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\UnattendProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\Wow64provider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Warning DISM DISM Provider Store: PID=1748 TID=2252 Failed to get the IDismObject Interface - CDISMProviderStore::Internal_LoadProvider(hr:0x80004002)2012-11-23 00:43:41, Warning DISM DISM Provider Store: PID=1748 TID=2252 Failed to Load the provider: C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\Wow64provider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x80004002)2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\SmiProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\SmiProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\EmbeddedProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Warning DISM DISM Provider Store: PID=1748 TID=2252 Failed to Load the provider: C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\EmbeddedProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\AppxProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\AppxProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\AssocProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\AssocProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Loading Provider from location C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\TransmogProvider.dll - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Connecting to the provider located at C:\Users\Jinx\AppData\Local\Temp\D6CD82AD-9809-45DA-9C25-BA6CF5154DE8\TransmogProvider.dll. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider2012-11-23 00:43:41, Info DISM DISM Transmog Provider: PID=1748 TID=2252 Current image session is [OFFLINE] - CTransmogManager::GetMode2012-11-23 00:43:41, Info DISM DISM Transmog Provider: PID=1748 TID=2252 Determined WinDir path = [Y:\MOUNT\Windows] - CTransmogManager::GetWinDirPath2012-11-23 00:43:41, Info DISM DISM Transmog Provider: PID=1748 TID=2252 GetProductType: ProductType = [WinNT] - CTransmogManager::GetProductType2012-11-23 00:43:41, Info DISM DISM Transmog Provider: PID=1748 TID=2252 Product Type: [WinNT] - CTransmogManager::Initialize2012-11-23 00:43:41, Info DISM DISM Transmog Provider: PID=1748 TID=2252 Product Type ServerNT : [No] - CTransmogManager::Initialize2012-11-23 00:43:41, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: OSServices2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Package Manager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: DISM Package Manager.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: MsiManager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: MsiManager.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: IntlManager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: IntlManager.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: IBSManager2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: DriverManager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: DriverManager.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Unattend Manager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: DISM Unattend Manager.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: SmiManager2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: AppxManager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: AppxManager.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: AssocManager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: AssocManager.2012-11-23 00:43:41, Info DISM DISM.EXE: Attempting to add the commands from provider: Edition Manager2012-11-23 00:43:41, Info DISM DISM.EXE: Succesfully registered commands for the provider: Edition Manager.2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Getting Provider DISM Package Manager - CDISMProviderStore::GetProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=2252 Processing the top level command token(cleanup-image). - CPackageManagerCLIHandler::Private_ValidateCmdLine2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=2252 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=2252 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=2252 CBS session options=0x402000! - CDISMPackageManager::Internal_Finalize2012-11-23 00:43:41, Info CBS No call is made on InitiateChanges, Synchronous Cleanup only.2012-11-23 00:43:41, Info CBS Starting Synchronous Cleanup2012-11-23 00:43:41, Info CBS Synchronous Cleanup not started since Reboot is required2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=1368 Error in operation: the operation could not be complete due to locked resources. (CBS HRESULT=0x800f0806) - CCbsConUIHandler::Error2012-11-23 00:43:41, Info CBS Cleanup: Processing complete. Session: 1748_40404750 [HRESULT = 0x800f0806 - CBS_E_PENDING]2012-11-23 00:43:41, Error CBS Session: 1748_40404750 failed to perform Synchronous Cleanup operation [HRESULT = 0x800f0806 - CBS_E_PENDING]2012-11-23 00:43:41, Info CBS Session: 1748_40404750 finalized. Reboot required: no [HRESULT = 0x800f0806 - CBS_E_PENDING]2012-11-23 00:43:41, Error DISM DISM Package Manager: PID=1748 TID=2252 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f0806)2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SOFTWARE2012-11-23 00:43:41, Info CBS Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SYSTEM2012-11-23 00:43:41, Info CBS Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SECURITY2012-11-23 00:43:41, Info CBS Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SAM2012-11-23 00:43:41, Info CBS Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/COMPONENTS2012-11-23 00:43:41, Info CBS Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/DEFAULT2012-11-23 00:43:41, Info CBS Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Users/default/ntuser.dat2012-11-23 00:43:41, Info CBS Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Users/default/ntuser.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]2012-11-23 00:43:41, Info CBS Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}Y:/MOUNT/Windows/system32/smi/store/Machine/schema.dat2012-11-23 00:43:41, Error DISM DISM Package Manager: PID=1748 TID=2252 Failed processing package changes - CDISMPackageManager::StartComponentCleanup(hr:0x800f0806)2012-11-23 00:43:41, Error DISM DISM Package Manager: PID=1748 TID=2252 Failed to start component cleanup. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f0806)2012-11-23 00:43:41, Error DISM DISM Package Manager: PID=1748 TID=2252 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0806)2012-11-23 00:43:41, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=800F08062012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Found the PE Provider. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(DISM Package Manager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Package Manager: PID=1748 TID=2252 Finalizing CBS core. - CDISMPackageManager::Finalize2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: DISM Package Manager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(MsiManager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: MsiManager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(IntlManager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: IntlManager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(IBSManager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: IBSManager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(DriverManager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: DriverManager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(DISM Unattend Manager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: DISM Unattend Manager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(SmiManager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: SmiManager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(AppxManager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: AppxManager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(AssocManager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: AssocManager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Finalizing the servicing provider(Edition Manager) - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: Edition Manager - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Releasing the local reference to OSServices. - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Disconnecting Provider: OSServices - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM OS Provider: PID=1748 TID=2252 Successfully unloaded all registry hives. - CDISMOSServiceManager::Final_OnDisconnect2012-11-23 00:43:41, Info DISM DISM Provider Store: PID=1748 TID=2252 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider2012-11-23 00:43:41, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.2012-11-23 00:43:41, Info DISM DISM.EXE: 2012-11-23 00:43:41, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->WIN8-DISM.PS1.TXT
MagicAndre1981 Posted November 23, 2012 Posted November 23, 2012 Err 0x800f0806 = pending operation. The cleanup only works for Images (online or offline) which have NO pending operation.C:\Users\Andre>err 0x800f0806# for hex 0x800f0806 / decimal -2146498554 CBS_E_PENDING cbsapi.h# the operation could not be complete due to locked resources# 1 matches found for "0x800f0806"
SplinteredEdge Posted November 23, 2012 Author Posted November 23, 2012 Thanks for the reply. I was thinking it might be a locked resources or something pending however I'm not sure yet how to resolve. it looks like my script is attempting the cleanup before committing changes to wim. I will reverse that order and try again.Does anyone know if removing certain packages causes issues with the /cleanup ?
SplinteredEdge Posted November 24, 2012 Author Posted November 24, 2012 (edited) I had a chance to retry the whole process. Time around I unmounted, committed and remounted the offline image before attempting the cleanup. unfortunately i'm still seeing the same error.Does the registry changes from install_wim_tweak need to be undone after removing packages and before running the clean-up?Could there be a package that was removed that could cause the cleanup to fail?Does using /addpackage to add netfx3 create a pending package that might interfere with the cleanup?Thanks for the feedback. I'm looking forward to seeing what anyone can come up with.Write-Host ------------------------------------------------------------------------------------Write-Host UNMOUNTING OFFLINE IMAGE AND COMMITING TO INSTALL2.WIM Write-Host ------------------------------------------------------------------------------------Z:\WIN8TOOLS\DISM\DISM.EXE /Unmount-WIM /MountDir:$DIRMOUNT /ScratchDir:$DIRSCRATCH /English /CommitWrite-Host ------------------------------------------------------------------------------------Write-Host MOUNTING OFFLINE IMAGE FROM INSTALL2.WIMWrite-Host ------------------------------------------------------------------------------------Z:\WIN8TOOLS\DISM\DISM.EXE /Mount-WIM /WIMFile:$WIMSTAGED /Index:1 /MountDir:$DIRMOUNT /ScratchDir:$DIRSCRATCH /EnglishWrite-Host ------------------------------------------------------------------------------------Write-Host CLEANING UP THE OFFLINE IMAGEWrite-Host ------------------------------------------------------------------------------------Z:\WIN8TOOLS\DISM\DISM.EXE /Image:$DIRMOUNT /ScratchDir:$DIRSCRATCH /English /Cleanup-Image /StartComponentCleanup------------------------------------------------------------------------------------CLEANING UP THE OFFLINE IMAGE------------------------------------------------------------------------------------Deployment Image Servicing and Management toolVersion: 6.2.9200.16384Image Version: 6.2.9200.16384Error: 0x800f0806DISM failed. No operation was performed. For more information, review the log file. Edited November 24, 2012 by SplinteredEdge
MagicAndre1981 Posted November 24, 2012 Posted November 24, 2012 you don't understand the point. After each steps look in WinSxS folder and look for a pending.xml. If this file appears you can no longer run the clean-up.
bphlpt Posted November 24, 2012 Posted November 24, 2012 (edited) So if he wanted to use cleanup on a build that had any operations still pending he would have to install the build in Audit mode, do the cleanup on that, then recapture the image? I might have the order of things wrong there, I've never done it before. Please don't quote me on this - I could be totally confused. Cheers and Regards Edited November 24, 2012 by bphlpt
SplinteredEdge Posted November 24, 2012 Author Posted November 24, 2012 (edited) Thanks for the insight. I wasn't aware that there was a pending.xml in the sxs directory. it looks like i have something to learn about this audit mode as well. thank you both. i should be able to figure this out, lots to learn. anyone have a good script to use as an example?EDIT: Watching for the pending.xml really cleared things up thanks. Edited November 24, 2012 by SplinteredEdge
SplinteredEdge Posted November 24, 2012 Author Posted November 24, 2012 I found that disabling and removing the following features in Windows 8 Pro x64 causes the creation of the pending.xml items and thus prevents the /clean-image command from completing:I was using /remove-feature and the /remove options.Microsoft-Windows-MobilePC-Client-Premium-Package-netMicrosoft-Windows-MobilePC-LocationProvider-INFXps-Foundation-Xps-ViewerPrinting-XPSServices-FeaturesRasCMAKRasRipWindows-Defender-Default-DefinitionsTelnetServerTFTPWCF-Services45WCF-HTTP-ActivationWCF-NonHTTP-ActivationWCF-TCP-PortSharing45Thanks guys problem solved. TIL pending/xml components can be created when remove features.
boogerlad Posted November 25, 2012 Posted November 25, 2012 Would removing those features after /clean-image still work?
SplinteredEdge Posted November 26, 2012 Author Posted November 26, 2012 (edited) I'm sure you could remove those components after a clean-image command. There are quite a few actions that trigger the creation of the pending.xml so YMMV. However as it turns out i'm not even sure what it does cleanup-image command does yet. It seems the popular answer is to install Windows 8 in Audit Mode and Recapture the Image to WIM which should clear out those pending items and the xml. I'd love to hear about a trick to process the pending.xml items without installing but it works pretty well anyway. Cheers Edited November 26, 2012 by SplinteredEdge
Solivagus Posted November 26, 2012 Posted November 26, 2012 Issue appears to be that some things require a boot for the pending.xml to process. Even enabling the .Net 3.5 framework (NetFx3) creates a pending.xmlBest bet is to find all the items that can be safely removed that don't make a pending.xml then run the cleanup so it removes then from winsxs then run the command with the items that create a pending.xml and make an install iso out of that. Upon first install boot it should process all those items however I am unsure of this.Going through and making a safe list now for s***s and giggles
MagicAndre1981 Posted November 26, 2012 Posted November 26, 2012 However as it turns out i'm not even sure what it does cleanup-image command does yet. it removes the files of features and updates you've uninstalled. In Vista/7 Windows does it when PC is idle for some time. With this command you can force the cleanup.
quest221 Posted November 13, 2013 Posted November 13, 2013 (edited) Old post. I Encoutered the same issue when integrated updates offline with Windows 8.1 image. Search and find this post. However, I find you can use /PreventPending argument to prevent the pending.xml.How to reclaim space after applying Windows 7/2008 R2 Service Pack 1http://blogs.technet.com/b/joscon/archive/2011/02/15/how-to-reclaim-space-after-applying-service-pack-1.aspxIf you want to enable some features offline. use the command dism /Cleanup-Image /StartComponentCleanup before you enable the features.Hope this is helpful for the coming! Edited November 13, 2013 by quest221
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now