Link to home
Start Free TrialLog in
Avatar of guitar7man
guitar7manFlag for United States of America

asked on

Migrate user accounts to another server


Does anyone know if there is a way to migrate local user accounts from a Windows 2000 Server machine to another Windows 2000 server machine (export then import)? Ideally, with passwords as well. I don't need to know what they are per se, just need them to work on the new server.

Thanks
Avatar of softplus
softplus

Are you migrating the domain to another server? You can just add the new server to your domain, dcpromo to promote it to a Domain controller, wait a bit + you're done :) (at least that's how I learned it)
John
Oops, too fast, you're talking about local user accounts, sorry then that won't work... (another case of the click-finger being faster than the brain cell, sorry)
John
Avatar of guitar7man

ASKER

hehe.... No Problem
There's a utility called ldifde that comes with 2k server that you can use to export all of your accounts and then run the same utility to import them into the new domain.  It'll take some playing with though.  Here's the MS page detailing its use.

http://support.microsoft.com/kb/q237677/

Basically, the export command you'll run (on a domain controller) will follow something like this

ldifde -f users.txt -s serverName -c dn, cn, objectclass, displayname, SAMAccountName

Where dn, cn, etc are the actual parts of the user's AD object you'll be exporting.  If you don't specify the -c and options following then you'll get everything.  That is probably the best bet to begin with, then you can go through and specify what you don't want.  It'll take some trial and error but it works.  

Then the import command will be

ldifde -i -f users.txt -s serverName

I've done this many times with success.  The only thing I'm not sure about is exporting and importing a user's password.

-Bernie
Bernie, ___local___ user accounts... not AD...

- Ryan
Woops! Wow, sorry, still finishing the coffee... I wasn't even the first one to do that, man..
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I don't believe that you can import local users.  The closest thing I could find was a utility called NTUserExport that'll export user account info into a .csv file.

http://redtiesolutions.com/20901.html

-Bernie

oBdA, nice.
Somarsoft's CopyPwd (http://www.systemtools.com/free_main.htm) will export the password hashes, and then you can reimport them, but it doesn't work.

What happens is when you create the new users on the new system, they all have new SIDs. That is a problem because the old user SIDs were used when encrypting the user's passwords into those hashes.

I am going to try researching whether or not you can change SIDs for a user, and if so, if there is a utility that will do it. If I get that far and all is a success, I will try importing the password hashes and see if it works.

I'll post my results when/if I find the answer.