Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exchange 2010 Powershell commands not working

Posted on 2013-06-20
6
Medium Priority
?
2,413 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

604 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