Access to multiple mailboxes via Powershell

kam_uk
kam_uk used Ask the Experts™
on
Hi

I have an application account, domain\App1, that needs to have full mailbox access to about 300 mailboxes. We have the list of mailboxes in a CSV file, but does anyone know a Powershell command we can use that will automatically script this access? My PS isn't that great :(

Exchange 2007.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Shreedhar EtteTechnical Manager
Top Expert 2010

Commented:
Technical Manager
Top Expert 2010
Commented:

Execute this:
get-content alias.txt |foreach-object {Add-MailboxPermission -Identity $_ -User $addusernamehere -AccessRights 'FullAccess'}

Author

Commented:
Out of interest, would this work and, if no, why not?

Get-content alias.txt | get-mailbox | add-mailboxpermission -accessRights "full access" -identity APP1

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial