HarePoint Explorer for SharePoint - An example of working with Active Directory
 

An example of working with Active Directory

As mentioned in the Introduction, HarePoint Explorer for SharePoint can be used for operations not only with the SharePoint object model, but also with other object models built on the basis of the .NET platform.

As an example, let us review the object model which provides access to the Active Directory objects.

Each node of Active Directory in the .NET model is presented via object of the DirectoryEntry type. TDirectoryEntry type. To access the root node, we can use the DirectoryEntry constructor without parameters.

We will perform the following for that:

  1. Create new script window.
  2. In the upper right window part, add reference to the System.DirectoryServices.dll assembly to the list of additional references.
  3. Create the DirectoryEntry object with the help of the new operator and return the reference to the created object.

Show screenshot

As a result of script execution, new bAs a result of the script execution, new browser window will be opened; using this window the whole hierarchy of Active Directory can be researched:

Show screenshot