Skip to content

Remove-CitrixDesktopAssignmentPolicyRule

Citrix: Removes a desktop assignment policy rule

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

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	Remove-BrokerDesktopAssignmentPolicyRule -Name $Name -Force -ErrorAction Stop
	Write-Output "Successfully removed desktop assignment policy rule '$Name'."
} catch {
	Write-Error $_
	exit 1
}

The name of the policy rule to remove.

An interactive directory of PowerShell scripts.