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:
To save a few characters... I hate using the word 'where'
get-mailbox | %{$_.ResourceType -eq "Room" } | Set-MailboxCalendarSettings -
AutomateProcessing AutoAccept -AllBookInPolicy:$true -AllowConflicts:$false
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. ;)
Whatever floats your boat man. :)
Post a Comment