Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exchange 2007 Get-Recipient does not return all results

Posted on 2013-06-21
3
Medium Priority
?
1,075 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Manpreet SIngh Khatra earned 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses

610 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