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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

craig_j_LawrenceCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nick_kesslerAuthor Commented:
Thanks craig_j_Lawrence

Will test it out...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.