Exchange 2010 Powershell command

I would like a PowerShell script that would apply the following command to all user's exchange accounts in our organization:

Set-Mailbox <mailbox> -MaxSendSize unlimited -MaxReceiveSize unlimited,
i already have set the send connector in organization configuration etc but there are few users that have message size restriction inndividualy

BR
Oren
solutech06Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Manpreet SIngh KhatraConnect With a Mentor Solutions Architect, Project LeadCommented:
Look you can have the SamAccount name or DisplayName in a text file ..... save it and then run the below command

Get-Content "file location .txt" | Set-Mailbox <mailbox> -MaxSendSize unlimited -MaxReceiveSize unlimited

- Rancy
0
 
solutech06Author Commented:
Great it worked

BR

Oren
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.