Set-CitrixServiceInstance
Citrix: Updates a service instance
param(
[Parameter(Mandatory = $true)]
[string]$ServiceType,
[Parameter(Mandatory = $true)]
[hashtable]$Metadata
)
try {
Import-Module Citrix.Configuration.Admin.V2 -ErrorAction Stop
Set-ConfigServiceInstance -ServiceType $ServiceType -Metadata $Metadata -ErrorAction Stop
Write-Output "Successfully updated service instance '$ServiceType'."
} catch {
Write-Error $_
exit 1
}The type of the Citrix service.
The metadata to update (hashtable).