Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 8 May 2008 07:27:25 -0700 (PDT),    group: microsoft.public.exchange.admin        back       


PowerShell Script for Conference Room   
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
date: Thu, 8 May 2008 07:27:25 -0700 (PDT)   author:   Chad

Re: PowerShell Script for Conference Room   
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
date: Thu, 8 May 2008 08:09:04 -0700   author:   Bharat Suneja [MSFT]

Re: PowerShell Script for Conference Room   
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?
date: Thu, 8 May 2008 08:38:09 -0700 (PDT)   author:   Chad

Re: PowerShell Script for Conference Room   
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?
date: Thu, 8 May 2008 08:48:32 -0700   author:   Bharat Suneja [MSFT]

Re: PowerShell Script for Conference Room   
Excellent.  Thank you very much.
date: Thu, 8 May 2008 13:29:08 -0700 (PDT)   author:   Chad

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us