Deploy Windows Management Framework 5

Deploy Windows Management Framework 5 with ConfigMgr

How to deploy Windows Management Framework 5 with Configuration Manager. Windows Management Framework 5.0 provides a lot of new features, including PowerShell version 5 and Windows Remote Management. This is how you deploy Windows Management Framework 5 to your devices with SCCM.

Note that WMF 4 need to be installed before you can install / upgrade to version 5.0 so we will cover that as well.

Update: See my guide: How to deploy Windows Management Framework 5.1 with ConfigMgr.

Supported Operating Systems

  • Windows 8.1
  • Windows 7 SP1
  • Windows Server 2012 R2
  • Windows Server 2012
  • Windows Server 2008 R2

Dependencies

  • .Net Framework 4.5 or newer. We will install 4.6.1
  • Windows Management Framework 4.0

.Net Framework 4.6.1

Windows Management Framework 5.0 requires .Net Framework 4.5 or newer. I choose .Net Framework 4.6.1 as it is the newest at the time of this blog post and it includes 4.5 as well. Create .Net Framework as an application in Configuration Manager. We will set this application as a dependency later when we create the Windows Management Framework 5.0 Application.

Download: https://www.microsoft.com/en-us/download/details.aspx?id=49982

Install string for .Net Framework 4.6.1 64-bit (Windows 7 and Windows Server 2008 R2)

NDP461-KB3102436-x86-x64-AllOS-ENU.exe /passive /norestart

Detection method: Registry

  • Hive/Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
  • Value: Release
  • Data type: Integer
    Greater than or equal to 394271

Set .Net Framework 4.6.1 to superseed any previous version you have of .Net Framework.

Note that there .Net Framework 4.6.2 is out. See my guide: How to Deploy .Net Framework 4.6.2 with SCCM

Windows Management Framework 4

Download: https://www.microsoft.com/en-us/download/details.aspx?id=40855

Install string for Windows Management Framework 4 (Windows 7 and Windows Server 2008 R2)

wusa.exe Windows6.1-KB2819745-x64-MultiPkg.msu /quiet /norestart

Detection method:

if (($PSVersionTable.PSVersion | Select-Object -ExpandProperty Major) -eq 4)
{
    Write-Host "Installed"
}

Deploy Windows Management Framework 5

Download: https://www.microsoft.com/en-us/download/details.aspx?id=50395

Tip: Make sure to check “Allow this application to be installed from the Install Application task sequene action without being deployed”. This is a very good application to install in your image. That goes for the dependencies as well.

Install string for Windows Management Framework 5.0 (Windows 7 and Windows Server 2008 R2)

wusa.exe Win7AndW2K8R2-KB3134760-x64.msu /quiet /norestart

Detection method

Installed PowerShell version is a great way to detect if Windows Management Framework is installed or not. WMF 5 will also have PowerShell major version 5 installed. PowerShell Variable $PSVersionTable.PSVersion holds the version number of the installed PowerShell version.

This is my PowerShell detection method, it only looks at major version but you can easily tweak it to look for minor version as well.

if (($PSVersionTable.PSVersion | Select-Object -ExpandProperty Major) -eq 5)
{
    Write-Host "Installed"
}

The Windows Management Framework 5 application do not need to superseed any previous version of Windows Management Framework as it is not required to uninstall an previous versions. Just make sure to remove any active deployments deployments from Windows Management Framework 3 and 4 so you don’t try to reinstall them after your systems are upgraded to 5.0

Anders Rødland

Anders Rødland started his IT career in 2006. My main focus is MS Configuration Manager and client management, and I have passed 17 Microsoft certifications since then. My main expertise is on client management with Microsoft Endpoint Manager: Intune and Configuration Manager. I also do a lot of work on the security side with Microsoft Defender for Endpoint. In addition to my Microsoft certification, I also have an ITIL v3 Foundation certification. This is my private blog and do not represent my employer. I use this to share information that I find useful. Sharing is caring.

3 thoughts to “Deploy Windows Management Framework 5 with ConfigMgr”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.