How to detect if MS16-004 hotfix is installed

While managing a number of farms I needed to search and find out if the hotfix for MS16-004 bug was installed.   Stefan posted a helpful solution for the Jan 2016 CU ListView issue at https://blogs.technet.microsoft.com/stefan_gossner/2016/01/15/solution-for-the-list-view-issue-with-ms16-004-january-2016-pu-for-sharepoint-2013/ and some farms have “wssloc2013-kb3114508-fullfile-x64-glb.exe” installed but not all.

 

This PowerShell can be run local or remote to indicate if a given farm has the hotfix.  Below is a remote sample across 40 servers with https://github.com/spjeff/splaunch.  Enjoy!  shades_smile

 

Code

$p1=$false;
$p=Get-SPProduct;
$p.PatchableUnitDisplayNames |% {
	$n=$_;
	if (($p.GetPatchableUnitInfoByDisplayName($n).patches |? {$_.patchname -like '*3114508*'}).count -gt 0) {
		$p1=$true;
	}
};
$obj = New-Object -TypeName PSObject -Prop (@{'wssloc2013-kb3114508-fullfile-x64-glb'=$p1;});
$obj;

 

Screenshot

image

Return to Top ▲Return to Top ▲