- $class = get-monitoringclass -name "Microsoft.SystemCenter.HealthService"
- $property = $class.getmonitoringproperties() | ? { $_.Name -eq "PatchList" }
- $Result = get-agent | ft -auto Name, @{Label="PatchList"; Expression={$_.hostedhealthservice.getmonitoringpropertyvalue($property)} }
$Result exported in an excel sheet should look like :
This could be usefull to follow CU deployment on agents.
This posting is provided "AS IS" with no warranties.
nice script, and nice stash, that thing is straight out of the 70's.
ReplyDelete