EXCHANGE

pramod1
pramod1 used Ask the Experts™
on
user wants to search emails for everybody in the organization

so I want to run script to make him delegate for all mailbox users in the company

so he can search emails or calendars

is there any command I can run
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
AmitIT Architect
Distinguished Expert 2017

Commented:
Which version of Exchange. If Exchange 2010, you can use search mailbox command. For permission you can use add mailbox permission.

Author

Commented:
it is exchange 2007, what command should I run so that user A has delegate access to all other mailbox users or employees in the company
AmitIT Architect
Distinguished Expert 2017
Commented:
You can use below command:

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne 'Administrator')} | Add-MailboxPermission -User user1@yourdomain.com -AccessRights fullaccess -InheritanceType all -AutoMapping:$false

Refer: https://technet.microsoft.com/en-us/library/bb124097(v=exchg.160).aspx
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Patrick BogersDatacenter platform engineer Lindows

Commented:
Hi

Why on earth you want that, this user have to add all mailboxes to his e.g. Outlook and download ALL content.
Anteaters, you can do it. Exchange 2010 and newer.

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne 'Admin')} | Add-MailboxPermission -User <theiwanttoreaddallusername> -AccessRights fullaccess -InheritanceType all

Cheers

Author

Commented:
I have exchange 2007
AmitIT Architect
Distinguished Expert 2017

Commented:
I have also added automapping to false above. So mailbox doesn't maps to user mailbox automatically. Try it out.
Datacenter platform engineer Lindows
Commented:

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