I want to run Get-Compliance with a baseline filter.
The baseline i want to filter on is VMware Tools Upgrade to Match Host (Predefined)
However when i run a simple
Get-Datacenter | Get-VM | Get-Compliance -Baseline "VMware Tools Upgrade to Match Host (Predefined)"
it returns an error of
Get-Complance : Cannot bind parameter 'Baseline'. Cannot convert the "VMware Tools Upgrade to Match Host (Predefined)" value of type 'System.String' to type "VMware.VumAutomation.Types.Baseline".
Any assistance here would be great.
Thanks,