Removing stuck or missing desktops from VMware Horizon View

by John C. Wray III Saturday, September 20, 2014 7:56 AM

Every once in a while you will get View Desktops stuck in View Administrator that won’t delete or were deleted and are showing as missing. You will need to manually clean them from the ADAM database. First connect to the ADAM database from one of the connection servers. Normally DOMAIN-VDCS1

Windows Server 2008

To connect to the View ADAM database:

  1. Log in to one of the View Connection Servers.
  2. Click Start > Administrative Tools > ADSI Edit.
  3. In the console window, right-click ADSI Edit and click Connect to.
  4. In the Name field type: View ADAM Database
  5. Select Select or type a Distinguished Name or Naming Context.
  6. In the field below, type dc=vdi,dc=vmware,dc=int
  7. Select Select or type a domain or server.
  8. In the field below, type localhost
  9. Click OK.
  10. Click View ADAM Database [localhost] to expand.
  11. Click DC=vdi,dc=vmware,dc=int to expand.

Next, locate the GUID of the stuck/orphaned VM you would like to disappear.

Removing the virtual machine from the ADAM database

Note: Before removing entries from the ADAM database, note the virtual machine name of the desktops that are being removed for reference when editing the Composer Database.

  1. Connect to the View ADAM Database.  For more information, see Connecting to the View ADAM Database (2012377).
  2. Locate the GUID of the virtual machine


  • Right-click the Connection View ADAM Database [localhost:389], and click New > Query.

  • Under Root of Search, click Browse.. and select the Servers organizational unit.
  • Click OK.
  • In the Query String, paste this search string:


    VirtualMachineName is the name of the virtual machine for which you are trying to locate the GUID. You may use * or ? as wildcards to match multiple desktops.

  • Click OK to create the query. 
  • Click the query in the left pane. The virtual machines that match the search are displayed in the right pane.

  1. Once you clean out all of the GUIDs, refresh the query to make sure you got all of the VMs.
  2. Check the View Administrator before you go any further, you may have unstuck enough to where the rest of the process completed.


  • Check if there are entries under OU=Desktops and OU=Applications in the ADAM database.
  • A broken pool that does not contain any desktops can be removed from View Manager by removing the pool entry from both the Server Groups and Applications organizational units. However, removing one entry and not the other from the ADAM database results in the java.lang.nullpointerexception error when attempting to view the pools or desktops inventory in View Manager.

Removing the linked clone references from the View Composer database

After cleaning out the VMs from the ADAM database you may get an error about a VM with the specifications already exists.

To remove the linked clone references from the View Composer database:

sviconfig -operation=removesviclone -vmname=<name of vm> -adminuser=username -adminpassword=password -ServerUrl=https://localhost:18443/SviService/v3_0



SviConfig is located on vCenter Server hosting View Composer (or standalone Composer server) at:


    32-bit servers: Install_drive\Program Files\VMware\VMware View Composer

    64-bit servers: Install_drive\Program Files (x86)\VMware\VMware View Composer




VMware | View

Comments are closed