Solved

Exchange 2007 Get-Recipient does not return all results

Posted on 2013-06-21
3
996 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
In this video we show how to create a Distribution Group 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 >>…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now