Skip to content

Add-CitrixAdminRight

Citrix: Adds an administrative right

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

	[Parameter(Mandatory = $true)]
	[string]$Right
)

try {
	Import-Module Citrix.DelegatedAdmin.Admin.V1 -ErrorAction Stop
	Add-AdminRight -Role $RoleName -Right $Right -ErrorAction Stop
	Write-Output "Successfully added right '$Right' to role '$RoleName'."
} catch {
	Write-Error $_
	exit 1
}

The name of the role.

The right/permission to add.

An interactive directory of PowerShell scripts.