Creating AD groups and adding users to the group using PowerShell

Creating an AD group

New-ADGroup -name ExampleAdmins -Samaccountname ExampleAdmins -groupcategory Security -GroupScope Global -displayname ExampleAdmins -path “ou=admin accounts,ou=Queensland,dc=example,dc=com” -description “Gold Coast Administrators”

Adding users to the group

Add-ADGroupMember ExampleAdmins exadmin1,examdim2,exadmin3