Hi all! I’m not a fan of the active directory tools my company has, and I feel it’s a better use of my time to learn how to do this in PowerShell as the skills will translate better to other jobs. So here’s how I’m trying to do it:
I’ve created a user class with all the active directory attributes which I want to carry into the new domain. I’m planning to use a foreach loop and the get-aduser cmdlet that creates an array of user objects with data populated in the attributes, and export that to a csv file. In the new domain I will import the csv and loop through the resulting object array creating new users with the new-aduser cmdlet.
I will have to do something similar in exchange where I will export user details and export the mailbox, and import all of this into the new domain.
Am I going about this the right way?