Create Active Directory Groups in Bulk from a CSV w/ PowerShell

I have a pretty simple script today. All it does is import your Active Directory group information from the CSV file and create the groups based on the information imported. This is pretty much as simple as it gets but very effective for creating multiple groups in different organizational units.

The format of the CSV file is in the code below. If you have questions leave a comment below or on the Youtube video or with the Social Media links below or you can hunt me down and ask in person as well.



  1. Rajiv | | Reply

    New-ADGroup : Cannot validate argument on parameter ‘GroupCategory’. The argument is null. Provide a valid value for
    the argument, and then try running the command again.
    At line:5 char:74
    + $create_group = New-ADGroup -Name $item.GroupName -GroupCategory $item.G …
    + ~~~~~~~
    + CategoryInfo : InvalidData: (:) [New-ADGroup], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirectory.Management.Commands.NewADGro

  2. Jason Tarr | | Reply

    I tried your scrip but it has an issue pulling the OU part any ideas. I have everything just as you have it. if I do it where I manually put in the ou after the -path it work, just wont work when pulling the data field for the CSV file

  3. Richard | | Reply

    script can’t read the groupscope field – error “Cannot validate argument on parameter ‘GroupScope’. The argument is null. Supply a non-null argument”

  4. Abs | | Reply

    how do we add an option to Check if the Group already exists?

Leave a Reply

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