export OU and attached Group policies

Posted on 2010-08-31
Last Modified: 2012-05-10
Hi,  can you suggest me some tool/script to export my domain OUs, Sub-Ous and Group Policies associated to indovidual OU/sub-OU. It should also include inherited GPs list also.
Question by:Komal_Upadhyay
  • 2

Expert Comment

by:Vikas Shah
ID: 33573991
Hi Komal,

There is utility called "LDIFDE utility". The link for how to use it is mentioned Below:


Vikas Shah


Expert Comment

by:Vikas Shah
ID: 33574008

There are few tools too but they are bit expensive.. However, if it is just a one time task, than you can use Quest Demo Version.:


Vikas Shah
LVL 11

Accepted Solution

JuusoConnecta earned 250 total points
ID: 33574937
I do this kind of work alot and i always use LDIFDE, if you for example want to export groups you can run the following command:

ldifde -f ExportedGroups -s "Name of a DC" -d "OU=YourOU,DC=YourDomain,DC=com" -p subtree -r "(&(objectCategory=group)(objectClass=Group))" -l displayname,samaccountname,description

After this you can import the list to a requested ou. but you will need to edit the file first, before importing.
One thing you need to change is: Which OU you want to import this to.

After this u can run the following command:

-i -f "Path of your ldfide file" -s "Name of domain controller in the new domain / existing domain" -j c:

Author Closing Comment

ID: 33821055
query was helpful and get my data.

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question