Exchange powershell request too large

David C
David C used Ask the Experts™
on
Hi Experts

I am trying to run the command below but getting an error that the request is too large

get-mailbox  | Add-MailboxPermission -User ”User” -AccessRights ‘FullAccess’

Error message
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Try batching by OU
get-mailbox -organizationalunit domain/users |  Add-MailboxPermission -User ”User” -AccessRights ‘FullAccess’

you can also modify the send receive sizes, but that will only work on remote sessions see:
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_28424605.html
David CIT Projects Manager

Author

Commented:
I tried the command in an OU with 7 users and it works but wont work with 27. Could there be something else stopping this apart from what can be solved with the remote sessions?

Commented:
$sales = Get-Mailbox
$sales | ForEach-Object{
  Add-MailboxPermission -identity $_ -User ”user” -AccessRights ‘FullAccess’
}

does that help?


**edited
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!

David CIT Projects Manager

Author

Commented:
Its requesting an identity?

New message
Commented:
edited the solution.
$sales = Get-Mailbox
$sales | ForEach-Object{
  Add-MailboxPermission -identity $_ -User ”user” -AccessRights ‘FullAccess’
}
Addy NadiaExpert

Commented:
Hello,

Please use below command :

Get-Mailbox | Add-MailboxPermission -User <UserorGroupIdentity> -AccessRights Fullaccess -InheritanceType all

Let me know if this works for you.

Thanks,
Andy

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