This problem occurs when you’re trying to delete a VM, but it doesn’t delete in the VDI client. This problem is exasperated by the fact that you may end up deleting the VM through vSphere, but instead of removing the entry, VMware View will report the machine as (Deleting) instead, likely even placing it under “Problem Desktops”.  Combine this with it being the last machine needed to be deleted in a VDI pool you’ll have an entire pool that’s stuck in the deleting state. Obviously we don’t want to leave it like that so follow these steps to delete the bad entry and remove the VM as well as the stuck pool.

  1. Open up vSphere and connect to vcenter
  2. Open up the console for the connection manager
  3. If the ADAM database is already connected, skip to number 4
    1. Click Start > Administrative Tools > ADSI Edit.
    2. In the console window, right-click ADSI Edit and click Connect to.
    3. In the Name field type: View ADAM Database
    4. Select Select or type a Distinguished Name or Naming Context.
    5. In the field below, type dc=vdi,dc=vmware,dc=int
    6. Select Select or type a domain or server.
    7. In the field below, type localhost
    8. Click OK.
    9. Click View ADAM Database [localhost] to expand.
    10. Click DC=vdi,dc=vmware,dc=int to expand.
  4. Locate the GUID of the virtual machine. To locate the GUID of the virtual machine:
    1. Right-click the Connection View ADAM Database [localhost:389], and click New > Query.
    2. Under Root of Search, click Browse.. and select the Servers organizational unit.
    3. Click OK.
    4. In the Query String, paste this search string:
      1. (&(objectClass=pae-VM)(pae-displayname=VirtualMachineName))
      2. Where 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.
    1. Click OK to create the query.
    2. Click the query in the left pane. The virtual machines that match the search are displayed in the right pane.
    3. Record the GUID in cn=<GUID>.
  1. Delete the pae-VM object from the ADAM database:
    1. Locate the OU=SERVERS container.
    2. Locate the corresponding virtual machine's GUID (from above) in the list which can be sorted in ascending or descending order, choose Properties and check the pae-DisplayName attribute to verify the corresponding linked clone virtual machine object.
    3. Delete the pae-VM object.


  • 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.

See Also: Connecting to the View ADAM Database, Manually Deleting VMs