Active Directory Security Groups deployment

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.
LVL 17
Tiras25Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

timgreen7077Exchange EngineerCommented:
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
0
footechCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kevinhsiehCommented:
You better organize your users into OUs. It is needed for group policies to work properly, or at least much easier.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.