Solved

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

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

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 a Contact 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 >> Contact ta…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

740 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