You probably know the cmdlet “New-ADUser” from the ActiveDirectory PowerShell Module.

You can use it the traditional way by specifying all the parameters, one by one in the command line interface, or, you can use a more “PowerShell” way like this :

Import-Csv .UsersForLab.csv -Delimiter “;”  | New-ADUser

You’ll find below a link to download a template with all parameters that supports pipeline input : (You can also check with the “Get-Help New-ADUser -Full”)


Note : If you need to specify more attributes, you will need to use the parameter “OtherAttributes” with a [HashTable].

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.