Link to home
Start Free TrialLog in
Avatar of Matthew McDonald
Matthew McDonaldFlag for United States of America

asked on

Exchange 2007 Get-Recipient does not return all results

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?
ASKER CERTIFIED SOLUTION
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Matthew McDonald

ASKER

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.
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