Solved

Exchange 2010 PowerShell to grant all users full-access to a mailbox

Posted on 2013-11-28
4
690 Views
Last Modified: 2013-11-28
I have a mailbox in Exchange 2010 which I would like to grant all users full-access to.  I'd like to do this with PowerShell.

I'm thinking I would use the
Get-Mailbox

Open in new window

command to get a list of all mailboxes and pipe it to the
Add-MailboxPermissions

Open in new window

command, something like this.

Get-Mailbox | Add-MailboxPermission -Identity '<mailbox>' -AccessRights FullAccess

Open in new window


But this doesn't work.  Can somebody help correct my bad PowerShell please?!

Best regards
Paul
0
Comment
Question by:Paul Huxham
  • 2
4 Comments
 
LVL 14

Expert Comment

by:brendanmeyer
ID: 39683316
Not Very Secure
or if you want Domain users

Add-MailboxPermission -Identity '<mailbox>' -User "Domain Users" -AccessRights FullAccess


or if you want Authenticated users

Add-MailboxPermission -Identity '<mailbox>' -User "Authenticated Users" -AccessRights FullAccess
0
 

Author Comment

by:Paul Huxham
ID: 39683322
Thanks, but I should have clarified.  I want to add all users individually so the mailbox is mapped for them in the Outlook client.  If I add them as a group the mailbox is not automapped in Outlook.

Thanks
Paul
0
 
LVL 40

Accepted Solution

by:
Subsun earned 300 total points
ID: 39683411
Try..
Get-Mailbox | % {Add-MailboxPermission -Identity '<mailbox>' -User $_.Alias -AccessRights FullAccess}

Open in new window

0
 

Author Comment

by:Paul Huxham
ID: 39683415
Hi Subsun

That's exactly what I wanted!

Many thanks
Paul
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question