Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 3457

Powershell help needed with remove-mailboxfolderpermission

$
0
0

Powershell novice-  I am trying to work out a way to use powershell to clean up some calendar permissions in Exchange 2013.  What I want to do is use get-mailbox to pull all mailboxes, and only remove the calendar permissions for user XYZ where it is = Reviewer.  Can this be done?  I have tried a few different ways to arrange the syntax.

This seems to be the closest I have gotten: 

get-mailbox |% {remove-mailboxfolderpermission -Identity ($_.Alias = ":\Calendar") -User "XYZ" -AccessRights "Reviewer} -whatif

This creates a pipeline concurrency error, but maybe this gives an idea of what I am trying to do.


Viewing all articles
Browse latest Browse all 3457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>