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

Example of work with Active Directory

As mentioned in the introduction, MAPILab Spy 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.


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:


Click to open real size screenshot

MAPILab Spy for SharePoint downloaden Download 15-days trial version MAPILab Spy for SharePoint (3930 KB):
 Primary server
 Secondary server
MAPILab Spy for SharePoint bestellen Purchase MAPILab Spy for SharePoint online through a secure server.
Product homepage
Screenshots
Version history
Примеры использования MAPILab Spy for SharePoint
Example of work with MAPILab Spy 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-2009 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.

See also: Office-Outlook.Com :: Office-Excel.Com

Quick links to MAPILab software:

MAPILab Reports

Add-ins for Outlook

Plugins for Outlook

Addons for Office

Software for SharePoint

Add-ons for Exchange

Groupware tools

Developer solutions