Keep getting "The Paramater is Incorrect". I think I'm following Microsoft's method correctly, but it's not working.
New-ADGroup -DisplayName $name -Name $grpName -Server server.org `
-Path:'DC=server,DC=org' -GroupCategory Distribution `
-GroupScope DomainLocal -Description $desc `
-OtherAttributes @{'mail'=$email;'gidNumber'=$gid}}
The Microsoft page shows you need to use the semi-colon to separate values, so I'm using
-OtherAttributes @{'mail'=$email;'gidNumber'=$gid}}
Is this wrong? Without the gidNumber
it works fine.