Exchange Posershell Get-user -OrganizationalUnit Path

I am trying to get the correct syntax for a cmdlet to pull a list of users from an OU within and OU that currently do NOT have mailboxes.
Get-User -OrganizationalUnit place.globla/USA/Miami/Users and variation thereof all give "A positional paramater cannot be found that accepts agrgument place.globla/USA/Miami/Users.
This is so simple but yet is killing me. Any help is appreciated.
Exchange 2010 SP3

Thanks in advance
kryanCAsked:
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.

Nick RhodeIT DirectorCommented:
You would use the ou switch

Get-User -OrganizationalUnit "ou=Users, dc=local"
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
kryanCAuthor Commented:
Get-User -OrganizationalUnit "ou=users, ou=miami, dc=contsco, dc=global"
Still get the same error. I am on the same network, same AD, and not sure what is up.
0
kryanCAuthor Commented:
Got it. Though I added the pssnapin for AD to the Exchange Shell it didn't work. But when I added the pssnapin for Exchange to the AD shell it worked.

Thanks all.
0
Nick RhodeIT DirectorCommented:
take out the spaces in the ""  Should be something like this

Get-User -OrganizationalUnit "ou=users,ou=Department,ou=Domain Users,dc=domain,dc=local" -RecipientType user
0
kryanCAuthor Commented:
Figured it out and as a snappin issue on my part.
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
Exchange

From novice to tech pro — start learning today.