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.
Not sure if the syntax is correct, but would greatly appreciate if someone could assist with appinfo status verification.
Thanks
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"
}
}