Solved

Exchange 2007 How can I assign Full Access Permissions to an OU

Posted on 2009-05-12
6
449 Views
Last Modified: 2012-05-06
I have a large number of Exchange accounts I'd like to export to .PSTs and delete. Is there a command in Exchange Management Shell to assign full access permissions to all mailboxes in a OU, instead of mailbox name per mailbox name? This would save me a lot of time.

0
Comment
Question by:adamant40
[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
  • 2
  • 2
6 Comments
 
LVL 32

Accepted Solution

by:
gupnit earned 500 total points
ID: 24367785
Hi,
I have not tried this in my lab, ubt it should work, if I am not wrong
ForEach ($mbx in Get-Mailbox -OrganizationalUnit YOUR-OU) { Add-MailboxPermission -Identity $mbx -User YOURADMINUSER -AccessRights FullAccess}
Let me know
Thanks
Nitin Gupta (gupnit)
0
 
LVL 24

Expert Comment

by:Rajith Enchiparambil
ID: 24368462
Get-mailbox -organizationalunit ouname | add-mailboxpermission -identity username -accessrights fullaccess.
0
 

Author Comment

by:adamant40
ID: 24368700
Rajith,
When I tried running your entry, I got the error below.
Add-MailboxPermission : The input object cannot be bound to any parameters for
the command either because the command does not take pipeline input or the inpu
t and its properties do not match any of the parameters that take pipeline inpu
t.
At line:1 char:61
+ Get-mailbox -organizationalunit Test | add-mailboxpermission  <<<< -identity
user -accessrights fullaccess
Add-MailboxPermission : The input object cannot be bound to any parameters for
the command either because the command does not take pipeline input or the inpu
t and its properties do not match any of the parameters that take pipeline inpu
t.
At line:1 char:61
+ Get-mailbox -organizationalunit Test | add-mailboxpermission  <<<< -identity
user -accessrights fullaccess
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 24

Expert Comment

by:Rajith Enchiparambil
ID: 24368870
I don't have a server in front.
Try add-adpermission.
0
 

Author Closing Comment

by:adamant40
ID: 31580612
Thank you. This worked perfectly and saved me a lot of time. I hope you answer my next question also.  ;-)
0
 
LVL 32

Expert Comment

by:gupnit
ID: 24371368
Glad to help :-)
Thanks
Nitin Gupta (gupnit)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create an Accepted Domain 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 >> Ac…
how to add IIS SMTP to handle application/Scanner relays into office 365.

752 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