Monday, July 21, 2008

PowerShell Script to Grant Full Mailbox Access

While testing out a new personal information scanner I discovered a need to grant one AD account full mailbox access to all mailboxes on my Exchange server. Below is the command I used to get the job done.

get-mailbox | select alias | foreach {

Add-MailboxPermission –Identity $_.alias –User myAdminAccount -Accessright Fullaccess -InheritanceType all

}

No comments: