Matthew McDonald
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
- Rancy
ASKER
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.