power-shell scripting for contacts in Address book

Hi, my organization has contacts globally, I only need contacts for America region usually I use get-contact or get-contact - identity for all contacts or specific contact is there any script for a specific region? thanks
venkat velagapudiAsked:
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.

RoninCommented:
Do you AD domain per country, location?  Do you have OU per country, location, division?
Tell us more about your setup.
0
Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
Hi!, there is a bunch of properties that you can use to filter out if you have filled in on your Active Directory.
if you run:
Get-Contact | select * -first 1

Open in new window

You will get all the properties for the 1st match.
In here you have properties like City, Region, Etc...
Screenshot_2.png
Using this information the command line would be:
Get-Contact | select * | where{$_.CountryOrRegion -like "us"}

Open in new window

In the "us" part goes how you fill it in the AD.
1

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
RoninCommented:
Abandoned
0
Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
Dude, the question is answered, you just ask another question.
And that answer can be useful for another people.
0
Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
I don't understand why people that didn't even have a complete profile have permissions to close questions.
Even worse, Moderators that didn't even know if an answer is correct or not, and go out yelling that it's "clearly not the answer", like  this and the worse part, the author gave me the reason.
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.