Christian Hans
asked on
Bulk Remove Calendar Permissions
What am I doing wrong?
I am trying to bulk remove all the users that have access to a some resource room calendars...
I can then go back and add the Default and Anonymous settings:
Add-MailboxFolderPermissio n "roomresource1@contoso.com :\calendar " -User "Default" -AccessRights Reviewer
Add-MailboxFolderPermissio n "roomresource1@contoso.com :\calendar " -User "Anonymous" -AccessRights None
Thanks in advance.
I am trying to bulk remove all the users that have access to a some resource room calendars...
$Users = Get-MailboxFolderPermission -Identity "roomresource1@contoso.com:\calendar"
foreach ($User in $Users)
{
Remove-MailboxFolderPermission -Identity "roomresource1@contoso.com:\calendar" -User $user
}
I can then go back and add the Default and Anonymous settings:
Add-MailboxFolderPermissio
Add-MailboxFolderPermissio
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So close... now I get the following:
Cannot process argument transformation on parameter 'User'. Cannot convert the "jeff.smith@contoso.com" value of type "Deserialized.Microsoft.Ex
"Microsoft.Exchange.Manage