How can I move users from one machine to another?

A. A. If you just want to replace the PDC of a domain with a new machine, the easiest way is to install the new machine as a BDC and then promote to the PDC which removes the need of adding/removing users.

If you actually want to merge two domains or just move some accounts the procedure below should help. You will need the resource kit utility addusers.exe

  1. Log on as an Administrator on the machine that has the accounts you wish to move
  2. Run the command
    addusers /d <file name>
    This will create a comma separated file with details of all accounts and groups.
  3. You don't want the information about global or local groups (such as Administrators etc) so edit the file and remove the \[Global\] and \[Local\] sections and their content.
  4. Copy the file to the machine you want to create the accounts on or a network drive
  5. Log on as an Administrator on the machine that the accounts should be added, if a domain, log on to the PDC
  6. Run the command
    addusers /c <file name>
    This will read in the file and create the accounts
  7. You could then delete the accounts of off the original machine using
    addusers /e <file name>

New versions of the addusers.exe utility add support so users don't have to change their passwords, e.g.

  /p:   Set's account creation options, followed by an comb. of \{lced\}<br>
    l   Users do not have to change passwords at next logon.<br>
    c   Users cannot change passwords.<br>
    e   Passwords never expire. (implies l option)<br>
    d   Accounts disabled.

So, 'addusers /e <filename> /p:l' would mean the users don't have to change the passwords.


Discuss this Article 8

Steve Porcelli (not verified)
on Nov 3, 2000
The artical is great. However, When I create the text file by running addusers /d the password does not get written to the text file. I have tried all combinition of switches. but still will not Write the password. This does not make sense to me because when you create the accounts with with the /c /p:lce the password will get poputated if it is in the text file. If anyone has some insight on this I would appreciate it. Is it possible that I have an older version of Addusers.exe?
Gerrit P. Haase (not verified)
on Jan 16, 2004
Hi, where is the addusers program?
Scott Delinger (not verified)
on Nov 20, 2000
Your example in the last line seems to contradict earlier info on the page: addusers /e /p:l would DELETE the users, right? Don't you mean addusers /c /p:l ??!!??
Anonymous User (not verified)
on Feb 1, 2005
thanks alot

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.