Solved

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

Posted on 2013-11-28
4
678 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

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
A procedure for exporting installed hotfix details of remote computers using powershell
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now