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