Skip to content

New-CitrixSiteDatabase

Citrix: Creates a new site database

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

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

try {
	Import-Module Citrix.Configuration.Admin.V2 -ErrorAction Stop
	$db = New-ConfigSiteDatabase -DatabaseName $DatabaseName -ServerName $ServerName -ErrorAction Stop
	Write-Output $db
} catch {
	Write-Error $_
	exit 1
}

The name of the database.

The FQDN of the SQL server.

An interactive directory of PowerShell scripts.