New-ADUser

Hello,

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”)

Template

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

Leave a Reply