Solved

Exchange 2010 Powershell commands not working

Posted on 2013-06-20
6
1,914 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
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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video discusses moving either the default database or any database to a new volume.

777 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