Fix for Get-HVInternalName and GlobalEntitlementId
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user