The following examples show usage of the Directory Connector cmdlets and parameters.

Create and Configure a Directory Connector

This example creates a new Directory Connector, and then configures it to run between the Lotus Domino server named Contoso01/Contoso and the Global Catalog Server ContosoAD001. The password for the local Lotus Notes ID file is passed using the $Credential variable in order to access the Domino Directory. The Active Directory directory service import and export containers are identified and the Exchange and Domino SMTP domains that are being synchronized are defined.

  Copy Code
New-DominoDirectoryConnector 
Set-DominoDirectoryConnector -DominoServer Contoso01/Contoso
Set-DominoDirectoryConnector -GlobalCatalog ContosoAD001
Set-DominoDirectoryConnector -NotesPassword $Credential
Set-DominoDirectoryConnector -ADExportContainers Export
Set-DominoDirectoryConnector -ADImportContainer Import
Set-DominoDirectoryConnector –RoutableExchangeDomains + <exchange.contoso.com>*
Set-DominoDirectoryConnector -SourceDominoDomains 
"contoso;names.nsf;domino.contoso.com”

Retrieve a Directory Connector's Properties

This example retrieves information about a Directory Connector.

  Copy Code
Get-DominoDirectoryConnector

Below are the results:

ConnectorType : Directory

ForeignDomain : Exchange

RoutableExchangeDomains : {}

ExportADGroups : True

ExportADContacts : True

GlobalCatalog : e108.IFYGJB-dom.extest.microsoft.com

DirSyncIntervalMinutes : 15

TargetNamesAndAddressBook : Names.nsf

SourceDominoDomains : {contoso}

ExportDominoGroups : True

ExcludeDominoGroups : {LocalDomainAdmins, LocalDomainServers, OtherDomainServers}

ADExportContainers : {CN=Users,DC=IFYGJB-dom,DC=extest,DC=microsoft,DC=com}

ADImportContainer : CN=Users,DC=IFYGJB-dom,DC=extest,DC=microsoft,DC=com

Name : E108 Domino Directory Connector

Identity : E108-DominoDirectoryConnector

ComputerName : E108

DominoServer : Server01/Contoso

NotesINIFile :

NotesPassword : System.Security.SecureString

Start the Directory Connector's Service

Running the Start-DominoDirectoryConnector command without any parameters launches the Domino Directory Connector Service.

  Copy Code
Start-DominoDirectoryConnector

Start the Directory Connector's Service

The first example below forces a two-way full synchronization between the Domino Directory and Active Directory. This synchronization should only be performed the first time that the service is run and can be performed later in rare conditions for troubleshooting.

  Copy Code
Start-DominoDirectoryConnector -FullReloadtoAD –FullReloadtoDomino

You can force a one-way full synchronization using one of the following two examples:

  Copy Code
Start-DominoDirectoryConnector -FullReloadtoAD
Start-DominoDirectoryConnector –FullReloadtoDomino

You must use the –Identity parameter to select the correct Directory Connector if you have multiple Directory Connectors defined, or if you are not running the task from the Exchange server where the Directory Connector is configured. For example:

  Copy Code
Start-DominoDirectoryConnector –Identity Exchange2007DominoDirectory Connector -FullReloadtoAD –FullReloadtoDomino 

To force synchronization of updates only in both directions, use the following example:

  Copy Code
Start-DominoDirectoryConnector –UpdatetoAD –UpdatetoDomino

You can force a one-way update synchronization using one of the following two examples:

  Copy Code
Start-DominoDirectoryConnector –UpdatetoAD 
Start-DominoDirectoryConnector –UpdatetoDomino 

Stop the Directory Connector's Service

Stop-DominoDirectoryConnector stops the service and shuts down synchronization if it is being performed.

  Copy Code
Stop-DominoDirectoryConnector

For More Information