Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-11-28
4
Medium Priority
?
721 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1200 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
In this video we show how to create an email address policy 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 Mail Flow…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

618 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