Rename-CitrixScope
Citrix: Renames a scope
param(
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $true)]
[string]$NewName
)
try {
Import-Module Citrix.DelegatedAdmin.Admin.V1 -ErrorAction Stop
Rename-AdminScope -Name $Name -NewName $NewName -ErrorAction Stop
Write-Output "Successfully renamed scope '$Name' to '$NewName'."
} catch {
Write-Error $_
exit 1
}The current name of the scope.
The new name for the scope.