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
You should use "server side" filtering for better speed:
function SearchKB($KBID)
{
if (Get-WmiObject "Win32_QuickFixEngineering" -Filter "HotFixID='$KBID'") {
$true
} else {
$false
}
Or use the Get-HotFix cmdlet(PowerShell 2.0):
if(Get-HotFix -Id $KBID) {$true} else {$false}