Remove-CitrixMachine
Citrix: Removes a machine
param(
[Parameter(Mandatory = $true)]
[string]$MachineName
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
Remove-BrokerMachine -MachineName $MachineName -Force -ErrorAction Stop
Write-Output "Successfully removed machine '$MachineName' from Citrix site."
} catch {
Write-Error $_
exit 1
}The name of the machine to remove.