Testing inventory objects for compliance with baselines
If you want to know whether your inventory objects are up to date or have missing patches, you can use the Test-Compliance
cmdlet to test inventory objects for compliance with baselines attached to them. The syntax of the Test-Compliance
cmdlet is as follows:
Test-Compliance [-Server <VIServer[]>] [-Entity] <InventoryItem[]>
[[-UpdateType] <UpdateType[]>] [-RunAsync] [-WhatIf] [-Confirm]
[<CommonParameters>]
The -Entity
parameter is required. You can use the -UpdateType
parameter to specify the type of the patches and upgrades you want to scan. The valid values are: HostPatch
, HostUpgrade
, HostThirdParty
, VmPatch
, VmHardwareUpgrade
, VmToolsUpgrade
, and VaUpgrade
. The VmPatch
value is deprecated ...
Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.