Get-CitrixDesktopEntitlementPolicyRule
Citrix: Gets desktop entitlement policy rules
param(
[Parameter(Mandatory = $false)]
[string]$Name
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
[hashtable]$cmdArgs = @{ 'ErrorAction' = 'Stop' }
if ($Name) { $cmdArgs.Add('Name', $Name) }
$rules = Get-BrokerDesktopEntitlementPolicyRule @cmdArgs
Write-Output $rules
} catch {
Write-Error $_
exit 1
}The name of the policy rule (optional).