Why does the script below return all kinds of mailboxes instead of just Room Mailboxes? Get-MailboxCalendarSettings | where {$_.RecipientType -eq [Microsoft.Exchange.Data.Directory.Recipient.RecipientTypeDetails]::ConferenceRoomMailbox} | fl
Get-Mailbox -ResultSize unlimited | where {$_.RecipientTypeDetails -eq "roommailbox"} or a better way to do it: Get-Mailbox -ResultSize unlimited -Filter {RecipientTypeDetails -eq "roommailbox"} - GetMailboxCalendarSettings returns calendar settings, RecipientTypeDetails is a mailbox/recipient property. - Filtering using the -filter parameter filters results at server-side and returns a smaller resultset. - List of filterable properties that can be used with -Filter parameter are provided here: Filterable Properties for the -Filter Parameter in Exchange 2007 SP1 http://technet.microsoft.com/en-us/library/bb738155(EXCHG.80).aspx -- Bharat Suneja Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. Please do not send email directly to this alias. This alias is for newsgroup purposes only. ---------------------------- "Chad" wrote in message news:98554906-75e5-45ee-800d-9b74a814bece@l42g2000hsc.googlegroups.com... > Why does the script below return all kinds of mailboxes instead of > just Room Mailboxes? > > Get-MailboxCalendarSettings | where {$_.RecipientType -eq > [Microsoft.Exchange.Data.Directory.Recipient.RecipientTypeDetails]::ConferenceRoomMailbox} > | fl
Thanks for the quick reply. I'm basically looking for a way to pipe all of the Mailbox Calendar Settings for my conference rooms to a text file for documentation purposes. Do you know of way to do that?
Pipe the resulting room mailboxes into Get-MailboxCalendarSettings, and redirect output to a text file: Get-Mailbox -ResultSize unlimited -Filter {RecipientTypeDetails -eq "roommailbox"} | Get-MailboxCalendarSettings | fl >MyTextFile.txt -- Bharat Suneja Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. Please do not send email directly to this alias. This alias is for newsgroup purposes only. ---------------------------- "Chad" wrote in message news:400a570a-63f2-4ef6-b2a9-cd27a713a947@i76g2000hsf.googlegroups.com... > Thanks for the quick reply. I'm basically looking for a way to pipe > all of the Mailbox Calendar Settings for my conference rooms to a text > file for documentation purposes. Do you know of way to do that?
Excellent. Thank you very much.