Fix for Get-HVInternalName and GlobalEntitlementId

This commit is contained in:
Matt Frey
2019-08-19 13:30:22 -05:00
parent 5e66c56742
commit ab266189c2

View File

@@ -7767,7 +7767,7 @@ function Get-HVPoolSpec {
if (! $DesktopInfoPsObj.GlobalEntitlementData.GlobalEntitlement) { if (! $DesktopInfoPsObj.GlobalEntitlementData.GlobalEntitlement) {
$DesktopPsObj.GlobalEntitlementData = $null $DesktopPsObj.GlobalEntitlementData = $null
} else { } else {
$entityId.Id = $DesktopInfoPsObj.GlobalEntitlementData.GlobalEntitlement.Id $entityId = $DesktopInfoPsObj.GlobalEntitlementData.GlobalEntitlement
$DesktopPsObj.GlobalEntitlementData = Get-HVInternalName -EntityId $entityId $DesktopPsObj.GlobalEntitlementData = Get-HVInternalName -EntityId $entityId
} }
@@ -8025,7 +8025,13 @@ function Get-HVInternalName {
} }
'GlobalApplicationEntitlement' { 'GlobalApplicationEntitlement' {
$info = $services.GlobalApplicationEntitlement.GlobalApplicationEntitlement_Get($EntityId) $info = $services.GlobalApplicationEntitlement.GlobalApplicationEntitlement_Get($EntityId)
return $info.Base.displayName return $info.base.displayName
}
'GlobalEntitlement' {
$GlobalEntitlementID = New-Object VMware.Hv.GlobalEntitlementId
$GlobalEntitlementID.Id = $EntityID.Id
$info = $services.GlobalEntitlement.GlobalEntitlement_Get($GlobalEntitlementID)
return $info.base.displayname
} }
default { default {
$base64String = $tokens[$tokens.Length-1] $base64String = $tokens[$tokens.Length-1]