O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating multiple organizational units: step-by-step exercises

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.

Note

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

  1. Open the Windows PowerShell ISE or some other script editor.

  2. 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
  3. Make sure you have the exact ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required