Friday, January 8, 2010

Prevent Double-Booking Rooms in Exchange 2007

My new responsibilities leave me little time to post, so I figured I'd dump a quick PS execution for admins quickly searching for a way to avoid double booking in their environment.


get-mailbox | where {$_.ResourceType -eq "Room" } | Set-MailboxCalendarSettings -
AutomateProcessing AutoAccept -AllBookInPolicy:$true -AllowConflicts:$false

ResourceType can be substituted for other types than Room as well.

3 comments:

Jeremy Phillips said...

To save a few characters... I hate using the word 'where'

get-mailbox | %{$_.ResourceType -eq "Room" } | Set-MailboxCalendarSettings -
AutomateProcessing AutoAccept -AllBookInPolicy:$true -AllowConflicts:$false

Joshua Raymond said...

Such a nit picker JP.

'Where' is easier for the layman who would use a script generated by someone else to figure out anyways. That is my reasoning, and I'm sticking to it. ;)

Jeremy Phillips said...

Whatever floats your boat man. :)