Create Users in New AD Domain with Old Users’ Domain Info

It has been nearly 2 years that I wrote the script to create new AD users with the automatic nested OU creation. The original idea is to create the users from the csv file in which AD users properties are defined. The script now supports extracting the current users and OU information from old domain and use in the new domain. The script will prompt for the new domain name & passwords (optional) to put in the csv file.

In this example, I will export the current users in contoso.local domain (See Fig-1) and create these users in example.local domain (See Fig-2). Since, we define the password with the script, it will use the same plain text password for all users in csv file (you can manually specify the passwords for each user)
Note: If it’s a new domain, you can also maually create the csv file before users creation (see inside the script to find out which csv headers must be included).

 
Fig-1: Extract Current Users Properties from source domain
Fig-2: Creating New Users from the csv file in destination domain
 

You can download my script here.

This entry was posted in Active Directory, Powershell. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *