Skip to content

Move-CitrixApplication

Citrix: Moves an application

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

	[Parameter(Mandatory = $true)]
	[string]$DestinationFolder
)

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	Set-BrokerApplication -Name $ApplicationName -AdminFolder $DestinationFolder -ErrorAction Stop
	Write-Output "Successfully moved application '$ApplicationName' to '$DestinationFolder'."
} catch {
	Write-Error $_
	exit 1
}

The name of the application.

The path to the destination folder.

An interactive directory of PowerShell scripts.