Expert
Expert

VMwareToolboxCmd.exe syntax appinfo

Hi,

We need to verify if appinfo is disabled on our VMs. Disabling can be easily done with VMwareToolboxCmd.exe config set appinfo disabled true, however getting the current setting is a little bit confusing.

vm.jpg

Not sure if the syntax is correct, but would greatly appreciate if someone could assist with appinfo status verification.

Thanks

0 Kudos
1 Reply
Expert
Expert

Could not find any info on VMwareToolboxCmd, but found a way to retrieve appInfo via powercli

Connect-VIServer -Server vcsa -User "administrator@vsphere.local" -Password "*******"

$vms = Get-VM | Where-Object {$_.powerstate -eq 'PoweredOn'}

    foreach ($VM in $vms) {

  

    $appInfoValue = (Get-AdvancedSetting -Entity $VM -Name "guestinfo.appInfo").Value

    if($appInfoValue -eq $null) {

        Write-Host -ForegroundColor White $VM "Application Discovery is Disabled for this VM"

    } else {

       Write-host -ForegroundColor Yellow  $VM "Application Discovery is Enabled this VM"

    }

    }

0 Kudos