Skip to content

Remove-CitrixRight

Citrix: Removes a right from an administrator

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

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

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

try {
	Import-Module Citrix.DelegatedAdmin.Admin.V1 -ErrorAction Stop
	Remove-AdminRight -Administrator $AdministratorName -Role $RoleName -Scope $ScopeName -ErrorAction Stop
	Write-Output "Successfully removed right from administrator '$AdministratorName'."
} catch {
	Write-Error $_
	exit 1
}

The name of the administrator.

The name of the role.

The name of the scope.

An interactive directory of PowerShell scripts.