Update VMware.HV.Helper.psm1
Add -clearGlobalEntitlement to Set-HVPool
This commit is contained in:
@@ -6207,6 +6207,9 @@ function Set-HVPool {
|
|||||||
[string]
|
[string]
|
||||||
$ResourcePool,
|
$ResourcePool,
|
||||||
|
|
||||||
|
[Parameter(Mandatory = $false)]
|
||||||
|
[switch]$clearGlobalEntitlement,
|
||||||
|
|
||||||
[Parameter(Mandatory = $false)]
|
[Parameter(Mandatory = $false)]
|
||||||
[boolean]$allowUsersToChooseProtocol,
|
[boolean]$allowUsersToChooseProtocol,
|
||||||
|
|
||||||
@@ -6319,6 +6322,12 @@ function Set-HVPool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($clearGlobalEntitlement) {
|
||||||
|
$update = New-Object VMware.Hv.MapEntry
|
||||||
|
$update.key = 'globalEntitlementData.globalEntitlement'
|
||||||
|
$updates += $update
|
||||||
|
}
|
||||||
|
|
||||||
$info = $services.PodFederation.PodFederation_get()
|
$info = $services.PodFederation.PodFederation_get()
|
||||||
if ($globalEntitlement -and ("ENABLED" -eq $info.localPodStatus.status)) {
|
if ($globalEntitlement -and ("ENABLED" -eq $info.localPodStatus.status)) {
|
||||||
$QueryFilterEquals = New-Object VMware.Hv.QueryFilterEquals
|
$QueryFilterEquals = New-Object VMware.Hv.QueryFilterEquals
|
||||||
|
|||||||
Reference in New Issue
Block a user