Update VMware.Hv.Helper

Added "clearGlobalEntitlement" switch to Set-HVApplication
This commit is contained in:
bfett20
2020-02-24 06:30:39 -06:00
committed by GitHub
parent e45aa0171d
commit 233c220dd6

View File

@@ -12683,6 +12683,9 @@ param (
[Parameter(Mandatory = $False)]
[String]$GlobalApplicationEntitlement = $null
[Parameter(Mandatory = $false)]
[switch]$clearGlobalEntitlement
)
begin {
$services = Get-ViewAPIService -HvServer $HvServer
@@ -12762,6 +12765,12 @@ param (
if ($PSBoundParameters.ContainsKey("AutoUpdateOtherFileTypes")) {
$updates += Get-MapEntry -key 'executionData.autoUpdateOtherFileTypes' -value $AutoUpdateOtherFileTypes
}
if ($clearGlobalEntitlement) {
$update = New-Object VMware.Hv.MapEntry
$update.key = 'data.globalApplicationEntitlement'
$updates += $update
}
$AppService = New-Object VMware.Hv.ApplicationService
$AppService.Application_Update($services,$App.Id,$updates)