> Yes, but as I said, my AD is relatively simple. All users have the
> same *mandatory* profile (stored in the DC) and the profile is cleaned
> on the local machine on each logoff (the users are pupils). Each user
> has just one share folder (to store his documents on the network). I
> have a csv file which contains (among other things) sAMAaccountName
> and password. So, with a script, I can recreate user accounts and
> rights within 10 minutes.
This is the easiest restriction to pass if you're prepared and have
sufficient desire. Mandatory profiles certainly simplifies things
>
> Even if the computer has already joined the domain of the "old" DC
> (knowing that the "new" DC has the same parameters as the "old" DC)?
Yes. No matter how much you make it match on the surface the domains are
not the same. The underlying unique identifiers, SIDs and GUIDs will be
different.
> Naively, I thought if I had a csv file containing computerName *and
> computerPassword*, I could create the computer accounts and I wouldn't
> need to join each computer to the domain of the "new" DC. Is it more
> complicated than that? How does it work? This is exactly the object of
> my post.
It's extremely hard to find explicit detail on that operation, security
subsystems are always tricky in this respect. For the most part you end
up hovering around API documentation from MSDN. For example:
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
To be honest I would discard the computer password. It's no good to you
because the computer must agree it with the domain when it joins and
negotiate change thereafter. I honestly don't think you'll get to a
stage where you can do anything useful without, ultimately, performing
the domain join operation.
Instead, and if the VM isn't going to work out, you may be better
investigating remote execution of netdom (via WMI perhaps) to join
systems to the new domain. Credentials can be passed along with a WMI
connection allowing you to use a local administrative account to
complete the operation. Add multi-threading and off you go, maybe an
hour to join them all if you stagger it. That's not entirely different
from the process used by tools like ADMT.
Chris
--
Blog:
http://www.indented.co.uk
DnsShell:
http://code.msdn.microsoft.com/dnsshell