Skip to content

Export-CitrixLogReportHtml

Citrix: Exports configuration log report to HTML

param(
	[Parameter(Mandatory = $true)]
	[string]$FilePath
)

try {
	Import-Module Citrix.ConfigurationLogging.Admin.V1 -ErrorAction Stop
	$log = Get-LogHighLevelOperation -ErrorAction Stop
	$log | ConvertTo-Html | Out-File -FilePath $FilePath -ErrorAction Stop
	Write-Output "Successfully exported log report to '$FilePath'."
} catch {
	Write-Error $_
	exit 1
}

The destination path for the HTML file.

An interactive directory of PowerShell scripts.