In these exercises, you will explore the use of a text file to hold the names of multiple OUs you wish to create in Active Directory. After you create the organizational units in the first exercise, you will add users to the OU in the second exercise.
To complete these exercises, you will need access to a Windows server running AD DS. Modify the domain names listed in the exercises to match the name of your domain.
Creating OUs from a text file
Open the Windows PowerShell ISE or some other script editor.
Create a text file called stepbystep.txt. The contents of the text file appear here:
ou=NorthAmerica ou=SouthAmerica ou=Europe ou=Asia ou=Africa
Make sure you have the exact ...