Edit Users Calendar Permissions- Exchange 2010

Need to accomplish a couple tasks of user's calendars within Excahnge 2010 SP1 setup.

Remove whatever existing calendar permissions on set on every user's calendar.
Add Free/Busy time permission for All Staff(Distribution Group) to every user's calendar.
Set Default permission to Free/Busy time on every user's calendar.

End result would be people would only see blocks of busy time on the scheduling assistant when creating appt's/meetings. Do not want users to be able to open other users calendar within Outlook itself, only if they are scheduling something, will they see the others users free/busy time...

Not worried about secondary calendar people might have, only their main. Outlook 2007 are the clients...

Thanks!
LVL 1
nick_kesslerAsked:
Who is Participating?
 
craig_j_LawrenceConnect With a Mentor Commented:
Try something Like this:
$Mailboxes = Get-Mailbox
for-each ($mailbox in $mailboxes){ get-mailboxfolderpermission $mailbox.primarysmtpaddress":\Calendar" |remove-mailboxfolderpermission $mailbox.primarysmtpaddress ":\Calendar" -user $_.user -AccessRights $_.AccessRights
add-mailboxfolderpermission $mailbox.primarysmtpaddress":\Calendar" -user <allusers smtp address> -AccessRights "AvailabilityOnly"
add-mailboxfolderpermission $mailbox.primarysmtpaddress":\Calendar" -user Default -AccessRights "AvailabilityOnly"
 }

I have written this off the top of my head, so please test this prior to using it on your production exchange server
0
 
nick_kesslerAuthor Commented:
Thanks craig_j_Lawrence

Will test it out...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.