Skip to content

Get-CitrixScope

Citrix: Gets scopes

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

try {
	Import-Module Citrix.DelegatedAdmin.Admin.V1 -ErrorAction Stop
	
	[hashtable]$cmdArgs = @{ 'ErrorAction' = 'Stop' }
	if ($Name) { $cmdArgs.Add('Name', $Name) }

	$scopes = Get-AdminScope @cmdArgs
	Write-Output $scopes
} catch {
	Write-Error $_
	exit 1
}

The name of the scope to filter by (optional).

An interactive directory of PowerShell scripts.