If you’ve ever managed a VMware View vdi environment for a period of time sooner or later you will have to manually delete orphaned virtual desktops. Although VMware provides KB 1008658 that explains this procedure. It is lacking in clarity especially for first time VMware View admins.
As we all know our friend Google provides if you only ask. I have found 3 other blogs that do very good job of taking KB 1008658 and parsing it down to a more concise version. My intention was to do this myself but why reinvent the wheel when you can just pay homage to it.
Here are the 3 blog post links:
The summarized steps for deleting an orphaned virtual desktop in VMware View is:
- Stop provisioning on the offending vdi pool (optional but my experience is that it is essential especially with very busy non-persistent pools with)
- Remove orphaned virtual desktop from ADAM database
- Remove all relevant entries for the orphaned vdi in the SQL Composer database
- Delete corresponding computer object out of Active Directory
- Enable provisioning once again on the pool
Please see the other blog posts for exact details.
Hopefully seeing more than one example really helps in understanding the necessary steps.