Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

need to spend all organization unit folders, containing the names of all my users who log into their corresponding session, and restore it on another server that is also active directory domain server

share|improve this question
I appreciate that English may not be your first language, but I personally am having some trouble understanding your question. Could you expand a little further? – Izzy Nov 26 '09 at 16:29
sorry ..let you explain.. I have a domain server, where I stored the names of my users and their accounts with which they come to their session on the computer, then I need to spend all these users to a new domain server – BetOnss Nov 26 '09 at 16:39
Are you trying to replace a domain controller, add a new one or something else? If trying to add or replace a domain controller, you should read up on the DCPROMO command. If you are trying to do something else, please explain an overview of what you are trying to do, rather than specific steps you think you need to perform, as you might well be asking the wrong question. – Bryan Nov 26 '09 at 16:48
Is the new DC already in the same domain as the old DC? Is the new DC in a different domain? – Izzy Nov 26 '09 at 16:53
The new DC is the same of the old DC. – BetOnss Nov 26 '09 at 17:07
up vote 1 down vote accepted

If you're aiming to effectively stage an identical copy of you AD to a separate server (for testing or something) you can use the Group policy management console (GPMC) to export your entire domain to an xml file which you can import into a different AD. This will very effectively create a "copy" of all your OUs, GPOs, and even users/groups. Bear in mind, passwords are not migrated this way.

Language barriers aside, it is VERY important that you do not do this if you're trying to replace an old domain controller with a new one, or add a second domain controller to the same domain.

You'll find some sample scripts for GPMC-based exports here:

share|improve this answer
Just to clarify: afaik, you cannot do this directly from the gpmc console. you have to do it with wsh from a command line using the scripts provided with the gpmc. for instance, to create an xml from your environment you would run the following from a command line: C:\Program Files\GPMC\Scripts>cscript CreateXMLFromEnvironment.wsf filename.xml /options – joeqwerty Nov 26 '09 at 18:21

If your newDC is in the same domain as the oldDC, then all the domain accounts will already be on the newDC.

If the newDC is in a different domain to oldDC, then you will need to use the Active Directory Migration Tool.

If you need to use the ADMT, let us know as there are some special requirements you need first (domain trusts, an account with Domain Admin privs in both domains etc)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.