Solved

Exchange 2010 Powershell commands not working

Posted on 2013-06-20
6
2,005 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:Alexander Kireev
ID: 39261744
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
ID: 39262115
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
ID: 39262164
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Accepted Solution

by:
tweeny-love earned 0 total points
ID: 39262189
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
ID: 39262203
Ok. I thought it just a mistake.
Good luck.
0
 

Author Closing Comment

by:tweeny-love
ID: 39283792
this worked
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
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 email address policy 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 Mail Flow…

696 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