Exchange powerShell with administrator

I new to powerShell and exchange 2010. I'm trying to run powerShell as Admin using run as but PowerShell always say on the top Machine: servername instead of Administrator: servername.

I try to use following cmd to get all the mailbox with quote but receive no result.
Get-Mailbox -ResultSize unlimited | Where{($_.UseDatabaseQuotaDefaults -eq $false)}

what do need to receive Administrative privileges in Exchange power-shell.
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.

Jeremy WeisingerSenior Network Consultant / EngineerCommented:
This has nothing to do with running elevated.

Do you get any results when running:
Get-Mailbox -ResultSize unlimited | Where{$_.UseDatabaseQuotaDefaults -eq $false} 

Open in new window

Get-Mailbox -ResultSize unlimited

Open in new window

numanmalikAuthor Commented:
I get nothing
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
OK, are you a member of any of the Exchange administration groups? How many mailboxes do you expect?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Jeremy WeisingerSenior Network Consultant / EngineerCommented:
You did try running the two commands from the Exchange Management Shell, correct?
Haresh NikumbhSr. Tech leadCommented:
First try to open Exchange Management shell. if that does not open then put your shelf in

You need to be member of the Organization Management group under OU Microsoft Exchange Security Groups
numanmalikAuthor Commented:
yes im a member of Exchange domain server, Enterprise server, All hosted org...etc
numanmalikAuthor Commented:
yes i did try running those 2 cmd. No output. When i do my mailbox

Get-Mailbox mymailbox | Get-MailboxStatistics

it give me output but for any other user i doesn't show anything
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Are there any other Exchange administrators? If so, ask them to give you permissions for what you're trying to do. If you are the only admin, then add you admin account the Organization Management group in Active Directory. (requires you to log off and then on to get an updated token)

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
Haresh NikumbhSr. Tech leadCommented:
you do not have permission to access others users mailbox.

add your account in  Organization Management group
numanmalikAuthor Commented:
I'm a member of organizational management group since for last many weeks. i just checked it again. What else can be the reason??
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Sounds like there might be an issue with the Exchange server then.

Can you run the Exchange BPA and look through the event log for issues?
numanmalikAuthor Commented:
i just check the logged files and its giving error code event id 6 "Couldn't find database "MN-PFDB0xxx"

This is public folder database. I don't know why its defaulted to my public folder instead of searching my DAG DB.
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Are you getting an error at the command prompt or is this in the event log?

If it's in the event log then that probably has nothing to do with the EMS issue. The Get-Mailbox command is actually getting a lot of its info from AD and not the DB(es) directly.

Have you run the BPA yet?

Are you able to query other mailboxes besides your own? e.g. Get-Mailbox user1
numanmalikAuthor Commented:
Issues resolved. I asked my coworker who has exchange right to run the query and it works for him. He was a part of group called "rExchangeAdministrator".

I added my useracc with this group and I can able to run the cmd. I don't think this is a default group. I believe someone set this group to handout permissions.

Thank you guys for your help
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Sounds like someone has done some tweaking with the groups. Glad you're able to work now.
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.