Check VUM Compliance of a cluster

This is a fairly straightforward couple of one liners that use my usual variables (i will list them below).
$global:DCChoice – DC Choice
$global:CLUChoice – Cluster Choice

You can add or remove these variables as required

#Run a VUM compliance check
Get-Datacenter $global:DCChoice | Get-Cluster $global:CLUChoice | Scan-Inventory

#Check VUM Compliance results
Get-Datacenter $global:DCChoice | Get-Cluster $global:CLUChoice | Get-Compliance | ft

You can even combine these in a function to make running it a little easier for example:

function VP-VUMCompliance
{
Write-Host "Running compliance check, please wait….."
Get-Datacenter $global:DCChoice | Get-Cluster $global:CLUChoice | Scan-Inventory
Get-Datacenter $global:DCChoice | Get-Cluster $global:CLUChoice | Get-Compliance | ft
Write-Host -NoNewLine " Press any key to continue…";
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
Clear
}

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.