Hello -
I have been installing/updating our Server 2008 R2 Environment (what few we have left) to the WMF 5.1 to allow for Powershell Update.
I've got a few servers that are not cooperating with the Install.
The Installation will run, but it finally gets to a point and says it fails. (The Following Updates were not installed) "Update for Windows (KB3191566)
I see the below errors on all servers, in the dism log
2020-12-22 18:41:29, Error DISM DISM Package Manager: PID=3496 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x80070002)
2020-12-22 18:41:29, Error DISM DISM Package Manager: PID=3496 Failed processing package changes - CDISMPackageManager::ProcessChanges(hr:0x80070002)
2020-12-22 18:41:29, Info DISM DISM Package Manager: PID=3496 Loaded servicing stack for online use only. - CDISMPackageManager::RefreshInstanceAndLock
2020-12-22 18:41:29, Error DISM DISM Package Manager: PID=3496 Failed while processing command add-package. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070002)
2020-12-22 18:41:29, Info DISM DISM Package Manager: PID=3496 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
2020-12-22 18:41:29, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=80070002
I have spent a few days on trying to repair this with no luck of any sort.
Current PS Version
2.0
.NET Version
PSChildName Version
v2.0.50727 2.0.50727.5420
v3.0 3.0.30729.5420
Windows Communication Foundation 3.0.4506.5420
Windows Presentation Foundation 3.0.6920.5011
v3.5 3.5.30729.5420
Client 4.8.03761
Full 4.8.03761
Client 4.0.0.0
I've done the below:
Ensured Updates are recent (no patches remain)
(yes, I know 2008 r2 is no longer being supported with updates)
sfc /scannow
DISM /restorehealth
Ran the installer for .NET 4.5.2 just for the heck of it, (Not needed for this system)
Installed from local machine (not a network share)
rebooted on multiple occasions, then install
Disabled AV
run the Install-WMF5.1 that is provided in the download from PS as Admin - ran without and with previously running Set-ExecutionPolicy Unrestricted
Run Disk Cleanup
Followed this from another site,
Open administrative Command Prompt and type following commands one-by-one followed by Enter key.
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
Ren C:\Windows\System32\catroot2 Catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
Close Command Prompt and see if Windows Updates works then
Also extracted the MSU - Win7AndW2K8R2-KB3191566-x64 and tried to install just the CAB file from Command Prompt as Admin (Windows6.1-KB3191566-x64.CAB)
Ran this command - DISM.exe /Online /Add-Package /PackagePath:C:\TEMP\powershell_update\msu\Windows6.1-KB3191566-x64.cab
I think this is all I have done, But I have tried this on all problem servers with the same end result.
I hope someone out there has had similar issues that can provide a solution.
(No, upgrading to 2016 or 2019 is not an option for these servers)
Thanks in advance
Brent