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
Solved

Exchange 2010 Powershell commands not working

Posted on 2013-06-20
6
1,952 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
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.

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Shared Mailbox 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 >> Sha…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

860 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