How to detect if Windows Server AppFabric is installed
Here is a little PowerShell script that will tell you if Windows Server AppFabric is installed
edit 6/29 – thanks for the comments – this is a much cleaner script - Ron
function IsWindowsServerAppFabricInstalled()
{
if(Get-HotFix -Id "KB970622") {$true} else {$false}
}
IsWindowsServerAppFabricInstalled
Comments
Anonymous
May 14, 2010
You should use "server side" filtering for better speed: function SearchKB($KBID) { if (Get-WmiObject "Win32_QuickFixEngineering" -Filter "HotFixID='$KBID'") { $true } else { $false } }Anonymous
May 15, 2010
Or use the Get-HotFix cmdlet(PowerShell 2.0): if(Get-HotFix -Id $KBID) {$true} else {$false}