How to create a new OU in Active Directory using PowerShell scripts? (2024)

Read on to know how to create an OU in Active Directory using PowerShell and how you can get it done easier with ADManager Plus.

Windows PowerShell

Steps to create a new OU in AD using powershell :

ADManager Plus

How to create a new OU in Active Directory :

  • Navigate to Management > OU Management > Create Single OU..
  • Enter the attribute values for OU. You can even import this list from a CSV file. Click Create.

Screenshot

How to create a new OU in Active Directory using PowerShell scripts? (1)

» Start 30-day Free Trial

Although creating an OU with native tools like PowerShell looks simple, it comes with a few limitations:

  • PowerShell script can be run only from the computers which have the Active Directory Domain Services role installed in them.
  • The script has to be rewritten if additional attributes are to be added.
  • Need for a new script, in case multiple OUs are to be created.
  • The syntax, parameters and iterations need to be correct. A typo or incorrect syntax might be difficult to spot and rectify, especially when the script is a long one.

ADManager Plus lets you perform the same with a few clicks from its web based GUI console. It also has options for creating multiple OUs simultaneously with templates and by importing a CSV file containing the values for OU attributes. You can learn more about it here.

Provision Active Directory OUs in bulk with ADManager Plus.

Get 30-day free trial.

How to create a new OU in Active Directory using PowerShell scripts? (2024)
Top Articles
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5363

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.