How to add another Country/region as setup in Active Directory into a DL through Powershell?

Scenario:-

We are adding another region to our business.
There are existing locations already setup in Powershell of which does:-

So for example if we have a bunch of users in London - there is an AllLondonUsers distribution list, which means if a User is added into AD with a London location, they auto add to this AllLondonUsers DL.

Our setup is on prem DC to Office 365 cloud.

How do I set this up through Powershell as a one timer, so new users added to this region are added automatically?

Also the new location is within the US - so the country/ Office attributes need added.
So say it is US in New Jersey as the Office attrib in AD
Darrin CrawfordAsked:
Who is Participating?
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.

Shaun VermaakTechnical Specialist/DeveloperCommented:
You can use my tool to create Active Directory Shadow Groups
https://www.experts-exchange.com/articles/32482/Active-Directory-Shadow-Groups.html
1531139325796-1-.jpg
0
Darrin CrawfordAuthor Commented:
No idea what this is to be honest - looks old

I am look for Powershell commands to work this
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
No idea what this is to be honest - looks old
I wrote it with .NET as a console application a few months ago
0
Darrin CrawfordAuthor Commented:
Apologies - let me rephrase this question.

What we need is a powershell command so that all Users in US - as their country and Florida as their City - are added to a AllFloridaUsers DL groups.

there are currently other Cities - in US currently setup.

I cannot find the details to set this one up - apologies again for the confusion
0
Darrin CrawfordAuthor Commented:
Re submitting question
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
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.