Skip to content

New-CitrixCatalog

Citrix: Creates a new machine catalog

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

	[Parameter(Mandatory = $true)]
	[ValidateSet('Static', 'Random')]
	[string]$AllocationType
)

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	$catalog = New-BrokerCatalog -Name $Name -AllocationType $AllocationType -ErrorAction Stop
	Write-Output $catalog
} catch {
	Write-Error $_
	exit 1
}

The name of the machine catalog.

The allocation type (Static, Random).

An interactive directory of PowerShell scripts.