Skip to content

Commit 31fa124

Browse files
authored
Merge pull request vmware#355 from bfett20/master
Add -clearGlobalEntitlement to Set-HVApplication
2 parents 46c3a91 + 9262600 commit 31fa124

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12683,6 +12683,9 @@ param (
1268312683

1268412684
[Parameter(Mandatory = $False)]
1268512685
[String]$GlobalApplicationEntitlement = $null
12686+
12687+
[Parameter(Mandatory = $false)]
12688+
[switch]$clearGlobalEntitlement
1268612689
)
1268712690
begin {
1268812691
$services = Get-ViewAPIService -HvServer $HvServer
@@ -12762,6 +12765,12 @@ param (
1276212765
if ($PSBoundParameters.ContainsKey("AutoUpdateOtherFileTypes")) {
1276312766
$updates += Get-MapEntry -key 'executionData.autoUpdateOtherFileTypes' -value $AutoUpdateOtherFileTypes
1276412767
}
12768+
12769+
if ($clearGlobalEntitlement) {
12770+
$update = New-Object VMware.Hv.MapEntry
12771+
$update.key = 'data.globalApplicationEntitlement'
12772+
$updates += $update
12773+
}
1276512774

1276612775
$AppService = New-Object VMware.Hv.ApplicationService
1276712776
$AppService.Application_Update($services,$App.Id,$updates)

0 commit comments

Comments
 (0)