Friday, November 11, 2016

ADSI Edit Notes



NOTE: Backup ADAM DB prior to making changes.


Connect to View ADAM DB:
  • Connection Point: dc=vdi,dc=vmware,dc=int
  • Computer: localhost:389

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 on connecting to the ADAM database with ADSI Edit, see Connecting to the View ADAM Database (2012377).

    Note: If you connect to ADSI and Connection server using RDP using a user account that does not have administrator privileges, you may see the error:

    Operation Failed. Error code: 0x8000500d. The directory property cannot be found in the cache

    To prevent this issue, log in to the Connection server through RDP using a user account with administrative privileges.
  2. Locate the virtual machine(s) for removal.

    1. Right-click the Connection View ADAM Database [localhost:389], and click New > Query.
    2. Provide a query name such as VM Search.
    3. Under Root of Search, click Browse and select the Servers organizational unit.
    4. Click OK.
    5. In the Query String, paste this search string:

      (&(objectClass=pae-VM)(pae-displayname=VirtualMachineName))

      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.
    6. Click OK to create the query.
    7. Click the query in the left pane. The virtual machines that match the search are displayed in the right pane.
  3. Check the properties of the items returned by the query to confirm the correct virtual machine(s) were found, and delete the pae-VM object(s) to remove them from the database.
Notes:
  • Check if there are entries under OU=Server Groups 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.
http://kb.vmware.com/kb/2015112

    1. 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.
  2. Check if there are entries under OU=Desktops and OU=Applications in the ADAM database.
  3. Check for entries in both the [OU=Server Groups] and [OU=Applications] and remove both. 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.
  4.  

No comments:

Post a Comment