Windows Management Framework 5.1 Failed Install (Win7AndW2K8R2-KB3191566-x64.zip)

Brent 1 Reputation point
2020-12-23T21:09:57.083+00:00

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

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,077 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,354 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dave Patrick 426K Reputation points MVP
    2020-12-23T21:27:35.55+00:00

    I'd verify system and servicing health by running;
    sfc /scannow

    also system update readiness tool

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/deployment/fix-windows-update-errors#resolution-for-windows-7-service-pack-1-sp1-and-windows-server-2008-r2-sp1

    Then check for errors in;
    %SYSTEMROOT%\Logs\CBS\CheckSUR.log

    --please don't forget to Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

  2. AliceYang-MSFT 2,081 Reputation points
    2020-12-25T02:21:49.34+00:00

    Hi,

    Thank for all the information you provided and troubleshooting you’ve made.

    Before we do any troubleshooting, please make sure that Extended Security Updates are requested for and configured on the problem servers. You may need these links: 1. How to use Windows Server 2008 and 2008 R2 extended security updates (ESU), 2. How to get Extended Security Updates for eligible Windows devices 3. Preparing to Deploy Extended Security Updates.

    If they do have ESUs, please note that for Windows 7 and Windows Server 2008 R2 the installation instructions have changed significantly. Except requiring .Net version 4.5.2, WMF 5.1 cannot be installed on Windows 7 or Windows Server 2008 R2 if WMF 3.0 is installed. I’m not sure whether you have uninstalled WMF 3.0 but this should be tried.

    As to error code 0x80070002, please check your time settings and perhaps delete Software Distribution Folder. Also, you can try to troubleshooting DISM failure.

    If the issue still exists, please try to install another fix on the problem servers to see whether KB3191566 or all fixes cannot be installed. You can also compare configuration of problem servers with servers that were successfully installed the fix.

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Thom Edwards 1 Reputation point
    2021-04-28T18:57:43.6+00:00

    This was helpful - and this worked for me:

    Ensured Updates are recent (no patches remain)
    (yes, I know 2008 r2 is no longer being supported with updates)

    sfc /scannow
    DISM /restorehealth

    0 comments No comments