Hi,
You need to tweak the objects returned by the cmdlets from VMware so that you can compare the objects and get the correct information like for example this:
$GlobalEntitlement = Get-HVGlobalEntitlement | Select-Object -Property @{Name = 'Id'; Expression = {$_.Id.Id}}, @{Name = 'DisplayName'; Expression = {$_.Base.DisplayName}}
$DesktopPools = Get-HVPool
$Properties = @{
Property = @{Name = 'ID'; Expression = {$_.Base.Name}},
@{Name = 'Display Name'; Expression = {$_.Base.DisplayName}},
@{Name = 'Global Entitlement'; Expression = {($GlobalEntitlement | Where-Object Id -eq $_.GlobalEntitlementData.GlobalEntitlement.Id).DisplayName}}
}
$DesktopPools | Select-Object -Property $Properties.Property