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?

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

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.

Do you AD domain per country, location?  Do you have OU per country, location, division?
Tell us more about your setup.
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
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...
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.

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
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
Dude, the question is answered, you just ask another question.
And that answer can be useful for another people.
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
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.
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

From novice to tech pro — start learning today.