Remove-MailboxFolderPermission recursive
If i place a permission an a Mailbox Folder with the add-mailboxfolderpermission command the rights are inherited to the subfolders of this folder, but if i take away the permission with the remove-mailboxfolderpermission command it affects only this folder.
The subfolders are not affected and the permission still persists on the subfolders.
Is there a way to delete folder permissions recursiv?
Thank you
November 8th, 2011 9:03am
Hi,
You have to run a pipeline command using Get-mailboxfolder and remove-mailboxfolderpermission
The first one return the list of all folder and subfolder for a specific mailbox and the second one remove the permission.
You proceed like this:
Remove-MailboxFolderPermission ... | Get-MailboxFolder -Identity Peter -recurse
thxBest Regards Don't forget to mark it as answer if it helps
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2011 9:21am
Hi,
You have to run a pipeline command using Get-mailboxfolder and remove-mailboxfolderpermission
The first one return the list of all folder and subfolder for a specific mailbox and the second one remove the permission.
You proceed like this:
Remove-MailboxFolderPermission ... | Get-MailboxFolder -Identity Peter -recurse
thxBest Regards Don't forget to mark it as answer if it helps
November 8th, 2011 5:10pm
If i place a permission an a Mailbox Folder with the add-mailboxfolderpermission command the rights are inherited to the subfolders of this folder,
Hi Leihulong,
I test it in my lab(Exchange 2010 SP1 rollup 5) and seems like the permission won't be inherited if you run the add-mailboxfolderpermission.
Anyhow, you can try to run the cmdlet as Maher said to remove the permission on folder and its subfolders.
Get-MailboxFolder -Identity Peter:\FolderName -Recurse | Remove-MailboxFolderPermission -User
username
Remove-MailboxFolderPermission
http://technet.microsoft.com/en-us/library/dd351181.aspx
Frank Wang
Free Windows Admin Tool Kit Click here and download it now
November 10th, 2011 3:02am
If i place a permission an a Mailbox Folder with the add-mailboxfolderpermission command the rights are inherited to the subfolders of this folder,
Hi Leihulong,
I test it in my lab(Exchange 2010 SP1 rollup 5) and seems like the permission won't be inherited if you run the add-mailboxfolderpermission.
Anyhow, you can try to run the cmdlet as Maher said to remove the permission on folder and its subfolders.
Get-MailboxFolder -Identity Peter:\FolderName -Recurse | Remove-MailboxFolderPermission -User
username
Remove-MailboxFolderPermission
http://technet.microsoft.com/en-us/library/dd351181.aspx
Frank Wang
November 10th, 2011 10:59am
Hi Leihulong,
Any updates?
Frank Wang
Free Windows Admin Tool Kit Click here and download it now
November 13th, 2011 9:01pm
I need to remove all folder permissions from a mailbox for a specific user. The example above is specific to one folder and its subfolders. Is there a command I can use to remove user permissions from ALL folders in an Exchange mailbox(Exchange 2010 SP1)?
January 10th, 2012 11:29am
How do I remove Exchange mailbox folder permissions for ALL folders (recursively) without specifying anything? We are using Exchaneg 2010 SP1.
I tried using following with no luck:
Get-MailboxFolderStatistics <smtp> | %{Get-MailboxFolderPermission ("smtp:{0}" -f $_.FolderId)}| Remove-MailboxFolderPermission -User <smtp>
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2012 1:49pm