PowerShell: Remove User Mailbox Permissions from Mailbox

This PowerShell script cycles through a list of users (users.txt) and removes them from all mailboxes in Microsoft Exchange.

foreach ($user in get-content c:\temp\users.txt) { Get-Mailbox | Remove-MailboxPermission -User user -AccessRights FullAccess -InheritanceType AllĀ 

Leave a comment

Your email address will not be published. Required fields are marked *