Re: Get-CASMailbox not returning same result with Server side filtering and Client side filtering?

  • Thread starter Ed Crowley [MVP]
  • Start date Views 1,108
Status
Not open for further replies.
E

Ed Crowley [MVP]

Neither of those gives you a count. In my test, the first one returns nothing (null) and the second returns a collection of mailboxes. Your first one is apparently not supported (even if it works in Exchange 2007) since OWAEnabled isn't on the list of filterable properties in this document http://technet.microsoft.com/en-us/library/bb738155.aspx, which links to the Exchange 2007 equivalent http://technet.microsoft.com/en-us/library/bb738155(EXCHG.80).aspx.

To get the count, you'd enter:

$Count= (Get-CASMailbox -ResultSize Unlimited | Where {$_.OWAEnabled}).Count

(The -eq $True isn't required.)

Ed Crowley MVP " There are seldom good technological solutions to behavioral problems."
 
L

Laeeq Qazi

Hi,

Thanks Ed for your reply.

I mistakenly wrote

$count

instead of

$count.count

Also this page http://technet.microsoft.com/en-us/library/bb738155(EXCHG.80).aspx. does have " OWAEnabled" as filterable porperty for Get-CASMailbox.

If webpage for " Filterable Properteis in Exchange 2010 SP1" references the same page for Exchange 2007, then it should imply that all the filterable properties should work on Exchange 2010 too.

This ps line

$count = Get-CASMailbox -filter {OWAEnabled -eq $True} -resultSize Unlimited

does return collection of PSObjects on my Exchange 2010 (both RTM and SP1), but less than the actual number, while on Ex2007 it is running fine. Also the important point is that the same ps command is running accurately on Ex10 for other protocols, like POPEnabled, IMAPEnabled etc. It's only having problem with OWAEnabled. Thats strange.

You know server side filters are always fast if we compare to client sider filtering.

Regards,

Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
 
E

Ed Crowley [MVP]

You are welcome to contact Microsoft Support and open a bug.Ed Crowley MVP " There are seldom good technological solutions to behavioral problems."
 
Status
Not open for further replies.
Top