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