Set-CitrixEntitlementPolicyRule
Citrix: Updates an entitlement policy rule
param(
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $true)]
[bool]$Enabled
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
Set-BrokerEntitlementPolicyRule -Name $Name -Enabled $Enabled -ErrorAction Stop
Write-Output "Successfully updated entitlement policy rule '$Name'."
} catch {
Write-Error $_
exit 1
}The name of the rule to update.
Whether the rule is enabled.