Get-BrokerSession -MachineName <DomainVDAHostname> | Set-BrokerSession -Hidden:$true
If the hung VDA still appears as registered you’ll also want to put it into maintenance mode to prevent the DDCs from ever attempting to start new sessions on it.
***Caution should be paid to the possibility of profile corruption since the user sessions are not actually being logged off of the Hung server. This command simply relinquishes the sessions from the XenDesktop perspective, so that new user sessions can begin on a different VDA.
Note: For cloud use the remote PowerShell SDK