Skip to content

Add-CitrixScope

Citrix: Adds a scope

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

	[Parameter(Mandatory = $false)]
	[string]$Description
)

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

The name of the new scope.

The description of the scope (optional).

An interactive directory of PowerShell scripts.