Exchange Server Share

… Information sharing on Exchange Server …

Exchange Powershell Tip #08

Exchange Powershell Tip #08

How to take LDAP dump of an Exchang object like Exchange Server, Mailbox Database, Public Folder Database, Mailbox, OWA Virtual Directory, Database Availability Group or Public Folder Hierarchies object?

You can take LDAP dump of Exchange object or in fact any AD object with ldifde utility. You basically need to know the DistinguisedName of the object.

Syntex :

ldifde -f “Location Of File To Save” -d “DistinguisedName of an AD Object” -p base

Now if you run this from Exchange Management Shell then Exchange Cmdlets will get the DistinguisedName for you. Here are some of the example to generate ldap dumps from Exchange Shell…

Server Object Dump:

ldifde -f c:\ExServerDump.ldf -d (Get-ExchangeServer ExchangeServerName).DistinguishedName -p base

Database Object Dump:

ldifde -f c:\MBDBDump.ldf -d (Get-MailboxDatabase DatabaseName).DistinguishedName -p base

Public Folder Object Dump:

ldifde -f c:\PubDBDump.ldf -d (Get-PublicFolderDatabase PublicFolderDatabase).DistinguishedName -p base

User Object Dump:

ldifde -f c:\Mailbox.ldf -d (Get-Mailbox MailboxName).DistinguishedName -p base

Virtual Directoy (OWA or Any) Object Dump:

ldifde -f c:\OWAVirDir.ldf -d (Get-OwaVirtualDirectory ExchangeServerName\owa*).DistinguishedName -p base

DAG Object Dump:

ldifde -f c:\DAG.ldf -d (Get-DatabaseAvailabilityGroup DAGName).DistinguishedName -p base

Public Folder Hierarchies Object Dump:

ldifde -f c:\PFHierarchies.ldf -d “CN=Public Folders,CN=Folder Hierarchies,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=YourExchOrgName,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=YourDomainName,DC=com” -p base

==> Get All Exchange Powershell Tips from the Archive Here<==

Written by Amit Tank

June 1, 2016 at 10:55 am

%d bloggers like this: