Active Directory Security Groups deployment

Tiras25
Tiras25 used Ask the Experts™
on
I have Active Directory users in flat mode.  No Security Groups, just flat users.  I need to deploy Security Groups (no OUs) and organize users per department and geographical locations.
About 500 users.  I have exported users list in Excel file.  Name, email, department, title, and location.
What' the best way to tackle that?  Trying to avoid doing it manually.  PowerShell script would be great I know.  If someone can help with command/scrips would be great.  
Thanks in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
timgreen7077Exchange Engineer
Distinguished Expert 2018

Commented:
The below link will provide a simple script to add members from a csv file to a security group

https://gallery.technet.microsoft.com/scriptcenter/ffff189d-8ef1-4903-b19c-12dcd352c88e
Top Expert 2014
Commented:
First you need to define your groups (according to roles, access, etc.) and what naming convention you'll use.
https://blogs.msmvps.com/acefekay/2012/01/06/using-group-nesting-strategy-ad-best-practices-for-group-strategy/

Then define the filtering criteria for which users will be members of which groups.  You'll likely also have groups that only have other groups as members.
If your filtering criteria matches with the info you have available (either already entered in account attributes in AD, or in fields in a .CSV), then you can try scripting the adding of accounts to groups.
kevinhsiehNetwork Engineer

Commented:
You better organize your users into OUs. It is needed for group policies to work properly, or at least much easier.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial