Freigeben über


Validating Hyper-V 2012 R2 and Failover Clustering 2012 R2 hotfixes and updates with PowerShell

Hey there,

If you were aware of my most excellent friend Cristian Edwards’ Hyper-V and Failover Cluster Hotfix check script, then you’ve probably been wondering if there is an update to the xml files to cater for 2012 R2 Servers and Clusters. Well the good news is that the answer is yes. There’s actually been an update to the script too.

Cristian is a little busy at the moment though so I volunteered to create this blog so that you don't have to wait to get your hands the script.

Cristian's original Blog can be found here:

https://blogs.technet.com/b/cedward/archive/2013/05/24/validating-hyper-v-2012-and-failover-clustering-2012-hotfixes-and-updates-with-powershell.aspx

The updated script adds a little more intelligence and will check which build of the OS is being queried and check for the appropriate updates based on the result. The methodology for running the script remains the same though, you just need to ensure the xml files are located in the same directory as the ps1 script file.

You can download the script from the link at the bottom of the page... NB: The script was updated today (3rd June 2014) with KB2957018 so if you downloaded it prior to 03/06/2014 then you will need to download the zip file again.

There are two scripts:

  • Check2012R2HyperVUpdates.ps1

  • CheckHyperVCluster2012R2Updates.ps1

There are three xml files that contain the hotfix data:

  • UpdatesListCluster2012R2.xml

  • UpdatesListHyperV2012R2-PreUR.xml

  • UpdatesListHyperV2012R2-WithUR.xml

The first script (Check2012R2HyperVUpdates) accepts a Host name as a parameter so that you can run it on individual Hosts. The second script (CheckHyperVCluster2012R2Updates) accepts the Cluster name as a parameter and will check all the Hosts in the Cluster. So you can choose which script to run based on your requirements, the resulting output will be the same.

For Example:

  • Check2012R2HyperVUpdates.ps1 HOSTNAME1, HOSTENAME2, HOSTNAME3

  • CheckHyperVCluster2012R2Updates.ps1 CLUSTERNAME

Hotfix Sources: There are a couple of articles that you can use to check for 2012 R2 Hotfixes for Hyper-V and Failover Clusters

List of Hotfixes for Hyper-V on Server 2012 R2 - https://social.technet.microsoft.com/wiki/contents/articles/20885.hyper-v-update-list-for-windows-server-2012-r2/rss.aspx

List of Server 2012 R2 Cluster Hotfixes - https://support.microsoft.com/kb/2920151

Hyper-V2012R2UpdatesCheck_03062014.zip

Comments

  • Anonymous
    May 31, 2014
    Pingback from Validating Hyper-V 2012 R2 and Failover Clustering 2012 R2 hotfixes and updates with PowerShell | MS Tech BLOG
  • Anonymous
    February 18, 2015
    Just wanted to let you know that the script doesn't work anymore with the recent November 2014 rollup. Is there somewhere to get the XML file for the November 2014 rollup? Looks like it would be pretty easy to update the script if i had that file. Thanks