Microsoft Exchange 2007
With Microsoft Exchange 2007 this can be done more centrally as follows:
•Create a script similar to this code:
#
# Maintain equipment and rooms.
#
$rooms = @( ("fails","for some reason")
, ("room development", "Guido Leenders")
, ("room finance & sales", "Guido Leenders")
, ("ws09", "Guido Leenders")
, ("ws25", "Guido Leenders")
, ("ws69", "Guido Leenders")
)
foreach ($room in $rooms)
{
#
# The next two are only for resources.
#
# Set-MailboxCalendarSettings -Identity $room[0] -AutomateProcessing AutoAccept -AllRequestInPolicy:$True -AllBookInPolicy:$False -ResourceDelegates $room[1] -RemovePrivateProperty:$False
# Add-ADPermission -Identity $room[0] -User $room[1] -ExtendedRights Send-As
Add-MailboxPermission -AccessRights FullAccess -Identity $room[0] -User $room[1] }
echo "Check http://extranet.XXX.com/owa/ROOM@XXX.com"
•Execute it.