Skip to content

Remove-CitrixScope

Citrix: Removes a scope

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

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

The name of the scope to remove.

An interactive directory of PowerShell scripts.