Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

New AD User With Different Primary Group At Creation

$
0
0

Is there a way to script creating a new AD user and specify a group other than "Domain Users" as the Primary at creation time?  Right now I can create a new user account, add "AltGrp01", set "AltGrp01" as primary and then remove "Domain Users" membership for new user.

I would like to create the new user as being a member of "AltGrp01" only and with that group set as Primary (without having to remove membership in "Domain Users".  Membership in "Domain Users" is not required at all for this project and I'd like to eliminate the extra step if possible.  Thanks.



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>