Management

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 787 other subscribers

Social

  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

Exchange 2013 : Get – Add – Remove Public Folder Client Permission [Solved]

This week i had to change some permissions on public folders in Exchange 2013

Here are some examples

List All Top Level Public Folders Anonymous Permissions

Get-PublicFolder \ -GetChildren | Get-PublicFolderClientPermission | ?{$_.User.UserType -eq ‘Anonymous’} | FT Identity, User, AccessRights -auto -wrap

List All Top Level Public Folders Default Permissions

Get-PublicFolder \ -GetChildren | Get-PublicFolderClientPermission | Where {$_.User.UserType -eq ‘Default’} | FT Identity, User, AccessRights -auto -wrap

List All Public Folders Where Anonymous is set to Rievewer

Get-PublicFolder \ -Recurse | Get-PublicFolderClientPermission | ? {($_.User.UserType -eq ‘Anonymous’) -AND ($_.AccessRights -eq ‘Rievewer’)} | FT Identity, User, AccessRights -auto -wrap

List All Public Folders Where Default is NOT Owner

Get-PublicFolder \ -Recurse | Get-PublicFolderClientPermission | ?{($_.User.UserType -eq ‘Default’) -AND ($_.AccessRights -ne ‘Owner’)} | FT Identity, User, AccessRights -auto -wrap

List All Public Folders Where RVoogt is set to Owner

Get-PublicFolder \ -Recurse | Get-PublicFolderClientPermission | ?{($_.User -like “*RVoogt*”) -AND ($_.AccessRights -eq ‘Owner’)} | FT Identity, User, AccessRights -auto -wrap

List All Public Folders Containing Old/Deleted Users with Permissions

Get-PublicFolder \ -Recurse | Get-PublicFolderClientPermission | ?{$_.User.UserType -like “Unknown”} | FT Identity, User, AccessRights -auto -wrap

Remove Old/Deleted Users from Public Folders (w/ WhatIf)

Get-PublicFolder \ -Recurse | Get-PublicFolderClientPermission | ?{$_.User.UserType -like “Unknown”} | ForEach {Remove-PublicFolderClientPermission -Identity $_.Identity -User $_.User -AccessRights $_.AccessRights -WhatIf}

This example adds permission for the user RVoogt to create items in the public folder VSPBreda.

Add-PublicFolderClientPermission -Identity “\VSPBreda” -User RVoogt -AccessRights CreateItems

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.