Solved

Exchange 2007 Get-Recipient does not return all results

Posted on 2013-06-21
3
1,020 Views
Last Modified: 2013-06-21
I just ran into a strange issue with the Get-Recipient commandlet from Exchange 2007 SP3.  I am no PowerShell guru, but it is my understanding that by just running the command, I would get a list of all recipients in the system:

     Get-Recipient (with no parameters)

I ran Get-Recipient | Sort-Object Name | Select-Object Name,RecipientType

When I look at the resulting list, I noticed some users were not on that list.

If I add some parameters to the Get-Recipient command to specifically look for that user, they show up.  For example:

     Get-Recipient "lastname*" | Sort-Object Name | Select-Object Name,RecipientType

or even

     Get-Recipient * | Sort-Object Name | Select-Object Name,RecipientType

The question I have is, why aren't the users showing up by just running Get-Recipient?
0
Comment
Question by:mcdonamw79
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Manpreet SIngh Khatra earned 500 total points
ID: 39266371
Get-Recipient -ResultSize unlimited | Sort-Object Name | Select-Object Name,RecipientType

You have to use the _resultSize to unlimited as by default its for 1000

- Rancy
0
 

Author Comment

by:mcdonamw79
ID: 39267114
Thanks Rancy.  That seems to have resolved my issue.

I admit though I'm still baffled by one thing.  It would appear that when MS made the Get-Recipient commandlet, they made it perform differently when using a wildcard vs. without.

For example:

Get-Recipient -ResultSize Unlimited | Select-Object -First 10
    vs.
Get-Recipient * -ResultSize Unlimited | Select-Object -First 10

I get a completely different list of items with both of these queries!  Any idea why that is?  Of course that's out of scope for my original question, but just curious.
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 39267500
Sir sorry i dont have a Lab or server access over weekend .... but leave me a message and will try to check and share my feedback if i can get why :)

- Rancy
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a User 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 >> Mailb…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

825 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