MAPILab - Microsoft Outlook Add-ins and Software for Microsoft Exchange Server
EnglishGermanRussian

Example of work with Active Directory

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

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

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

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

Directory Entry
Click to open real size screenshot


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

Hierarchy of Active Directory
Click to open real size screenshot
MAPILab Explorer for SharePoint downloaden Download free version of MAPILab Explorer for SharePoint (2760 KB):

Primary server
Secondary server

Product homepage
Screenshots
Version history
Примеры использования MAPILab Explorer for SharePoint
Example of work with MAPILab Explorer for SharePoint:
Building scripts
Operations with persisted objects
Example of work with Active Directory
Example of work with Windows Forms
Debugging of regular expressions
Exploration of W3C Document Object Model (DOM)
Leave your Suggestion:
Name:
E-mail:
 
 
Search on MAPILab.com:
Get our Newsletter:
E-mail:
© 2003-2010 MAPILab Ltd. All Rights Reserved.

Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Quick links to MAPILab software:
Reporting Solutions
Add-ins for Outlook
Plugins for Outlook
Addons for Office
Disclaimers for Exchange
Software for SharePoint
Add-ons for Exchange
Groupware tools
Developer solutions
Plugins for Microsoft Excel