The easiest way to manage objects in an Active Directory domain is using the Active Directory Users and Computers (ADUC) MMC snap-in. However, what if you need to create multiple user accounts in bulk, or ADUC is not available for some reason? PowerShell provides powerful cmdlets to perform AD management tasks efficiently.
Importing the Active Directory Module
Keep in mind that before you can work with Active Directory and its objects, you need to import the Active Directory module for Windows PowerShell.
Windows Server 2008 R2
In Microsoft Windows Server 2008 R2, you need to enable this module by running the following command:
Import-Module ActiveDirectory
Windows Server 2012 and Later
In Microsoft Windows Server 2012 and later, this module is enabled by default.