Welcome to the Blogcast Repository Sign in | Join | Help
Search BlogCastRepository.com for:
in Search

254 BlogCasts in The BlogCast Repository!

Santhosh Sivarajan, Houston,TX

How to import and export directory objects

Using LDIFDE command 

You can use the Ldifde.exe utility to export all directory objects to an .ldf file. The following command searches Houston OU and creates a file called exportdirectory.ldf containing those objects and its attributes:

Export Commandldifde -m -f c:\exportdirectory.ldf -d "OU=Houston,dc=Sivarajan,dc=Lab"

This command will export all the directory objects inside Houston OU to exportdirectory.ldf file. The reason I used "-m" switch is, it will automatically strip all system-owned attributes when exporting the objects. If you don't use "-m" or filter using "-r" or "-o" option, you will get the following error message when you try to import the objects into Active Directory

"Unwilling to perform. The modification was not permitted for security reasons"

Import Command

ldifde -i -f c:\exportdirectory.ldf

Also, you can use CSVDE command to import and export Active Directory objects. 

Export Using CSVDE command 

csvde -f c:\exportdirectory.csv -d "OU=Houston,dc=Sivarajan,dc=Lab"

Import Using CSVDE command 

csvde -i -f c:\exportdirectory.csv

Technorati : ,

Share this post:                                       

Comments

No Comments

About Santhosh Sivarajan

Santhosh Sivarajan is a Technical Architect in Houston, TX. His main focuses are Microsoft Infrastructure and Security Technologies. He is MCSE (W2K3/W2K/NT4), MCP+I, MCSA (W2K3/W2K/MSG) and CCNA certified. His expertise includes Active Directory, Exchange, Migrations, Microsoft Clustering, Microsoft Security, RMS, MOM, LCS, ISA Server, etc. If you wish to send an email, he can be reached at santhosh@sivarajan.com.