Fix for Get-HVInternalName and GlobalEntitlementId
This commit is contained in:
@@ -7767,7 +7767,7 @@ function Get-HVPoolSpec {
|
||||
if (! $DesktopInfoPsObj.GlobalEntitlementData.GlobalEntitlement) {
|
||||
$DesktopPsObj.GlobalEntitlementData = $null
|
||||
} else {
|
||||
$entityId.Id = $DesktopInfoPsObj.GlobalEntitlementData.GlobalEntitlement.Id
|
||||
$entityId = $DesktopInfoPsObj.GlobalEntitlementData.GlobalEntitlement
|
||||
$DesktopPsObj.GlobalEntitlementData = Get-HVInternalName -EntityId $entityId
|
||||
}
|
||||
|
||||
@@ -8025,7 +8025,13 @@ function Get-HVInternalName {
|
||||
}
|
||||
'GlobalApplicationEntitlement' {
|
||||
$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 {
|
||||
$base64String = $tokens[$tokens.Length-1]
|
||||
@@ -12776,4 +12782,4 @@ Export-ModuleMember -Function Get-HVEventDatabase, Set-HVEventDatabase, Clear-HV
|
||||
# vCenter Server related
|
||||
Export-ModuleMember -Function Get-HVvCenterServer, Get-HVvCenterServerHealth
|
||||
# Misc/other related
|
||||
Export-ModuleMember -Function Get-HVlicense, Set-HVlicense, Get-HVHealth, Set-HVInstantCloneMaintenance, Get-HVBaseImageVM, Get-HVBaseImageVMSnapshot
|
||||
Export-ModuleMember -Function Get-HVlicense, Set-HVlicense, Get-HVHealth, Set-HVInstantCloneMaintenance, Get-HVBaseImageVM, Get-HVBaseImageVMSnapshot
|
||||
Reference in New Issue
Block a user