get-mailbox does not show all mailboxes

Hi,

i have test of Exchange 2013 SP1 CU7. Seems, that all works good. Users can login over OWA, send emails each other.

In ECP i see all 50 mailboxes. In powershell - only one! Why? how i can fix it?

[PS] C:\>get-mailbox -Identity "*"

Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
User 1                     User 1                 ex1              Unlimited
[PS] C:\>Get-Mailboxdatabase

Name                           Server          Recovery        ReplicationType
----                           ------          --------        ---------------
Mailbox Database 1363112588    EX1             False           None
base1                          EX1             False           None
all                            EX1             False           None
User 1 belong to base1, but into this base there are more mailboxes.

Thank you!


  • Edited by Anahaym 21 hours 37 minutes ago
May 12th, 2015 5:21am

i have test of Exchange 2013 SP1 CU7

did update up CU8 - doesn't helped
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 9:32am

Please try after running this command

Set-AdServerSettings -ViewEntireForest $true -PreferredGlobalCatalog <gc.domain.com>

http://technet.microsoft.com/en-us/library/bb124527(v=exchg.141).aspx

Are you getting the same result when running command get-ma

May 12th, 2015 9:51am

Please try after running this command
Set-AdServerSettings -ViewEntireForest $true -PreferredGlobalCatalog <gc.domain.com>
Are you getting the same result when running command get-mailbox?
nothing changed
still only one User
  • Edited by Anahaym 17 hours 33 minutes ago
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 9:53am

Hi,

i have test of Exchange 2013 SP1 CU7. Seems, that all works good. Users can login over OWA, send emails each other.

In ECP i see all 50 mailboxes. In powershell - only one! Why? how i can fix it?

[PS] C:\>get-mailbox -Identity "*"

Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
User 1                     User 1                 ex1              Unlimited
[PS] C:\>Get-Mailboxdatabase

Name                           Server          Recovery        ReplicationType
----                           ------          --------        ---------------
Mailbox Database 1363112588    EX1             False           None
base1                          EX1             False           None
all                            EX1             False           None
User 1 belong to base1, but into this base there are more mailboxes.

Thank you!


Try just running Get-Mailbox without the identity switch and see what it returns.
May 12th, 2015 10:19am

Try just running Get-Mailbox without the identity switch and see what it re

Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 10:25am

ok, try 

I've had to do this in larger environments (user count > 500) but you can try this as well:

Get-Mailbox -ResultSize Unlimited

or 

Get-MailboxDatabase | Get-Mailbox

May 12th, 2015 10:28am

Get-MailboxDatabase | Get-Mailbox

[PS] C:\>Get-MailboxDatabase | Get-Mailbox
Some of the parameters specified with the "Get-Mailbox" cmdlet aren't present in the role definition for the current user. Check the management
roles assigned to you, and try again.
    + CategoryInfo          : PermissionDenied: (:) [Get-Mailbox], CmdletAccessDeniedException
    + FullyQualifiedErrorId : [Server=EX1,RequestId=8f4353bc-70b8-4002-9aae-a6be740e801d,TimeStamp=12.05.2015 14:28:28] [FailureCategory=Cmdlet-Cmdl
   etAccessDeniedException] 98B25FB9,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
    + PSComputerName        : ex1.domain.internal

i compared membership with domain\administrator. what is missing?

[PS] C:\>Get-ADUser -Identity aleks -Properties memberof | Select-Object MemberOf

MemberOf : {
CN=import,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Server Management,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Recipient Management,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Organization Management,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Domain Admins,CN=Users,DC=domain,DC=internal,
CN=Enterprise Admins,CN=Users,DC=domain,DC=internal,
CN=Schema Admins,CN=Users,DC=domain,DC=internal
}

[PS] C:\>Get-ADUser -Identity administrator -Properties memberof | Select-Object MemberOf

MemberOf : {
CN=import,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Server Management,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Recipient Management,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Organization Management,OU=Microsoft Exchange Security Groups,DC=domain,DC=internal,
CN=Group Policy Creator Owners,CN=Users,DC=domain,DC=internal,
CN=Domain Admins,CN=Users,DC=domain,DC=internal,
CN=Enterprise Admins,CN=Users,DC=domain,DC=internal,
CN=Schema Admins,CN=Users,DC=domain,DC=internal,
CN=Administrators,CN=Builtin,DC=domain,DC=internal
}
By Administrator all works.


  • Edited by Anahaym 15 hours 57 minutes ago
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 10:59am

Just check the user properties, under General Tab

 " Hide from address lists"  disable this

then try again in powershell

Regards,

Joby

May 12th, 2015 11:28am

Just check the user properties, under General Tab "Hide from address lists"

is empty for all users.
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 11:31am

is hide from address lists option is enable or disable?
May 12th, 2015 12:00pm

is hide from address lists option is enable or disable?

Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 12:10pm

hmm.. you both have Org Management rights, so everything seems like it's correct. Can you check to see if you have any additional RBAC roles in Exchange that might be causing a problem?
May 12th, 2015 1:02pm

can't see any special in RBAC. Right now successfully i created new test account, that i can't see as well
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 1:15pm

Hi,

Please run the following command in EMS to return a list of recipient objects from Active Directory:

Get-Recipient

Then confirm if all user mailboxes are listed there and check whether the RecipientType value is UserMailbox.

Additionally, please check the user properties in ADUC of User1. Then compare the attributes value between User1 and the other mailboxes to check whether there are any differences.

Regards,

May 13th, 2015 1:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics