Reply to Message

View discussion in a popup

Replying to:
RvdNieuwendijk
Leadership
Leadership

Frank,

you can get the not compliant patches with:

$VMHostObj = Get-VMHost YourHost.YourDomain.YourCountry
$ComplianceStatus = Get-Compliance -Entity $VMHostObj -Detailed
$ComplianceStatus | Select-Object -expandProperty NotCompliantPatches

You can get the values of the other VMware.VumAutomation.Types.Patch[] properties of $ComplianceStatus in the same way.

Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Reply
0 Kudos