Add Full Access for the mailbox owner - script to run on all mailboxes
Hi there, I need to add the "Full Control" permission for the mailbox owner's account, to their own mailbox. I need to do this for all users. We have a third party application that requires this (the SELF permission is not enough). Is there an EMS command that I can run to achieve this? I know I need to use a combination of get-mailbox & add-permission but I'm not sure how to achieve what I require. Cheers, Sotty_Sydney
October 5th, 2011 9:22pm

Something like this should work but I haven't tested it: $Mailboxes = Get-Mailbox -ResultSize Unlimited ForEach ($Mailbox In $Mailboxes) { $Identity = $Mailbox.Identity $UserID = $Mailbox.SamAccountName Add-MailboxPermission -Identity $Identity -User "DOMAINNAME\$UserID" -AccessRights FullAccess -InheritanceType All } You should test it on one mailbox first with this change: $Mailboxes = Get-Mailbox -Identity "Mailbox Name" ForEach ($Mailbox In $Mailboxes) { $Identity = $Mailbox.Identity $UserID = $Mailbox.SamAccountName Add-MailboxPermission -Identity $Identity -User "DOMAINNAME\$UserID" -AccessRights FullAccess -InheritanceType All } Good luck!Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
October 6th, 2011 12:23am

Something like this should work but I haven't tested it: $Mailboxes = Get-Mailbox -ResultSize Unlimited ForEach ($Mailbox In $Mailboxes) { $Identity = $Mailbox.Identity $UserID = $Mailbox.SamAccountName Add-MailboxPermission -Identity $Identity -User "DOMAINNAME\$UserID" -AccessRights FullAccess -InheritanceType All } You should test it on one mailbox first with this change: $Mailboxes = Get-Mailbox -Identity "Mailbox Name" ForEach ($Mailbox In $Mailboxes) { $Identity = $Mailbox.Identity $UserID = $Mailbox.SamAccountName Add-MailboxPermission -Identity $Identity -User "DOMAINNAME\$UserID" -AccessRights FullAccess -InheritanceType All } Good luck!Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
October 6th, 2011 7:15am

For Scripts related problem, please post in http://social.technet.microsoft.com/Forums/en-AU/category/scripting. Your understanding would be appreciated.Fiona
Free Windows Admin Tool Kit Click here and download it now
October 6th, 2011 10:52pm

Works beautifully Ed! You're a legend. Thanks very much for your help. Cheers, Sotty_Sydney
October 6th, 2011 11:47pm

You're welcome. Please mark it as an answer and/or helpful if it answers your question.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
October 7th, 2011 2:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics