MM&M UG UK

 

The home of the Microsoft Messaging and Mobility

User Group in the UK.

Welcome to MM&M UG UK Sign in | Join | Help
in
Home Blogs Forums Photos Articles Links CESN Downloads Aggregated RSS

Get-Mailbox -filter with database as a filterable property

Last post 05-22-2009, 10:24 by shauncroucher. 0 replies.
Sort Posts: Previous Next
  •  05-22-2009, 10:24 28240

    Get-Mailbox -filter with database as a filterable property

    Hi,

    I am trying to use the following command:

    Get-Mailbox -Filter "Database -eq 'Mailbox Database C'"

    but I receive no results? There is a mailbox database called Mailbox Database C on the server with mailboxes in it.

    According to the article at http://technet.microsoft.com/en-us/library/bb738155.aspx

    The database is a filterable property of the mailbox object.

    I know you cannot use -filter and -database together, and this is why I wish to include the 'database' property in the filter statement, so that I can use the filter parameter on a particular mailbox database.

    I have tried other methods such as piping the results of the Get-mailbox -database "Database name" with no success. I can pipe and then use the where parameter, but I fear this may not be as effecient once scaled to large numbers of mailboxes.

    Shaun
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems