# Generate Database 'Evict' Scripts for XenDesktop DataStore This SID will be referenced in the eviction script we run next.Ĭreate a PowerShell script by copying the following lines, changing $DBName and $EvictedSID values to your database name and orphaned controller name. What you are interested in here is the SID of the orphaned controller. The details pane shows information we expect to see such as ActiveDirectoryObjectNotFoundException.įrom a healthy Delivery Controller, launch PowerShell and run commands asnp citrix.* & Get-BrokerController -DNSName yourcontrollername You will receive the below unexpected error. When I launch Studio, to perform a graceful remove navigate to Configuration -> Controllers. Next I deleted the virtual machine and computer object from Active Directory. To show you what happens, I’ve built a Delivery Controller (SF.), added to my existing Citrix site.
TOTALLY RELIABLE DELIVERY SERVICE REMOVE GHOSTS MANUAL
Instead, you must run a manual eviction script to complete the removal. This happens because the SQL stored procedure fails to generate a necessary part of the T-SQL script which removes all references of the Controller from the database.
If one of your Delivery Controllers has completely failed and you deleted it’s computer object from Active Directory, you may then attempt to gracefully remove the Delivery Controller via Citrix Studio however it will fail. Remove orphaned, deleted, failed Delivery Controller from a XenApp or XenDesktop site.