Skip to content

Set-CitrixAccessPolicyRule

Citrix: Updates an access policy rule

param(
	[Parameter(Mandatory = $true)]
	[string]$Name,

	[Parameter(Mandatory = $true)]
	[bool]$Enabled
)

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	Set-BrokerAccessPolicyRule -Name $Name -Enabled $Enabled -ErrorAction Stop
	Write-Output "Successfully updated access policy rule '$Name'."
} catch {
	Write-Error $_
	exit 1
}

The name of the rule to update.

Whether the rule is enabled.

An interactive directory of PowerShell scripts.