Solved

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

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this video we show how to create an Address List 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 Organization >> Ad…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

713 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