Set-MailboxFolderPermission Exceptions

Hi All,

I use the following script to change all the Exchange 2013 user their calendar rights to Reviewer:

Get-Mailbox | foreach{ Set-MailboxFolderPermission $($_.UserPrincipalName+":\calendar") -User default -AccessRights  Reviewer }

Open in new window


But I need to exclude the mailboxes for the top level users (managers) in our company.
Now I looked in to the man page (get-help) of the set-mailboxfolderpermission but nothing about exceptions.

Can anyone point me in the right direction?
Edan-SphinxAsked:
Who is Participating?
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
So you need to completely exclude the mailboxes that are Managers in your environment? Are there any attributes that are referenced on there AD or Exchange Account so that you can filter this based on your script? If this is the case i can assists.

Will.
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.