Skip to content

Remove-CitrixRole

Citrix: Removes an administrator role

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

try {
	Import-Module Citrix.DelegatedAdmin.Admin.V1 -ErrorAction Stop
	Remove-AdminRole -Name $Name -Force -ErrorAction Stop
	Write-Output "Successfully removed role '$Name'."
} catch {
	Write-Error $_
	exit 1
}

The name of the role to remove.

An interactive directory of PowerShell scripts.