VMware Cloud Community
lgrusa
Contributor
Contributor

PowerCLI script to display VM storage compliance

Hello,

It would be useful to have a PowerCLI script that will list non-compliant VMs per the VM Storage policy.  Haven't turned up anything from searches on how to list that attribute with PowerCLI..

Thanks in advance

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Isn't that what the Get-SpbmEntityConfiguration cmdlet with the CheckComplianceNow switch is doing?
In your case you would be looking where the ComplianceStatus is nonCompliant.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos