Solved

Exchange 2010 Powershell commands not working

Posted on 2013-06-20
6
1,720 Views
Last Modified: 2013-06-28
I have access to an Exchange 2010 setup. The Exchange 2010 console works fine.

However, commands run in exchange shell do not work:

[PS] C:\ps>get-mailbox *tony*
The operation couldn't be performed because object '*tony*' couldn't be found on 'exdcm10.uk.is.adr'.
    + CategoryInfo          : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 6B0F798D,Microsoft.Exchange.Management.RecipientTasks.GetMailbox

[PS] C:\ps>



Does anyone know how to fix?

Thanks.
0
Comment
Question by:tweeny-love
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:Alexander Kireev
Comment Utility
Hello,

You have error, because you haven't mailbox with alias&name "*tony*".

Try "Get-Mailbox *" and look into alias & name columns.

Syntacsys of get-mailbox cmdlt: http://technet.microsoft.com/ru-ru/library/bb123685%28v=exchg.141%29.aspx
0
 

Author Comment

by:tweeny-love
Comment Utility
Ok, we have 15,000 users so there is definitely someone with *tony*.

Now when I run get-mailbox * -resultsize 10000

It only returns a small subset of users, about 200, not everyone in the enterprise - any idea why?
0
 
LVL 4

Expert Comment

by:Alexander Kireev
Comment Utility
Take anyone user from previuos result and try get-mailbox *AnyoneUserName*

For example:

[PS] C:\Windows\system32>Get-Mailbox *
Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
root                      root                 hrs-msd     unlimited
test11 ¿¿¿¿¿¿             test11               hrs-msd     unlimited
test12 ¿¿¿¿¿¿             test12               hrs-msd     unlimited
test13 ¿¿¿¿¿¿             test13               hrs-msd     unlimited
test14 ¿¿¿¿¿¿             test14               hrs-msd     unlimited

[PS] C:\Windows\system32>Get-Mailbox *test*
Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
test11 ¿¿¿¿¿¿             test11               hrs-msd    unlimited
test12 ¿¿¿¿¿¿             test12               hrs-msd     unlimited
test13 ¿¿¿¿¿¿             test13               hrs-msd     unlimited
test14 ¿¿¿¿¿¿             test14               hrs-msd     unlimited
test15 ¿¿¿¿¿¿             test15               hrs-msd     unlimited
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Accepted Solution

by:
tweeny-love earned 0 total points
Comment Utility
Ah it's ok thanks for your help but I figured it out. I just had to set it to the entire forest rather than the server I was running the command from:

Set-AdServerSettings -ViewEntireForest $True
0
 
LVL 4

Expert Comment

by:Alexander Kireev
Comment Utility
Ok. I thought it just a mistake.
Good luck.
0
 

Author Closing Comment

by:tweeny-love
Comment Utility
this worked
0

Featured Post

Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

Suggested Solutions

Resolve DNS query failed errors for Exchange
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now