First, the operating environment preparation
1) PowerShell is in the Windows7 version of the client, it is recommended to use more than Windows8.1 client (version above 3.0). If it is not found, it may not have the ability to turn on PowerShell (which can be turned on in Control Panel).
2) Check the PowerShell execution policy
If the PowerShell execution policy is not correct, the connection to Exchange online will not be established. Can be viewed using Get-executionpolicy.
You can run the Set-executionpolicy remotesigned command adjustment. Related to the following
650) this.width=650; "title=" clip_image001 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image001 "src=" http://s3.51cto.com/wyfs02/M01/8C/88/wKioL1hvS1_SpKDsAABLjzTk21c199.jpg "height=" 129 "/>
Second, connect to the Exchange online server
Run the following command:
$Cred = get-credential #请输入Office 365 user name and password for the global administrator
$Session = New-pssession-configurationname Microsoft.exchange-connectionuri https://partner.outlook.cn/ Powershell-liveid-credential $Cred-authentication basic-allowredirection
Import-pssession $Session
Iii. adjusting the size of messages sent and received in Exchange online
1) Set up a single message to send and receive a maximum of 150M for a specified mailbox
650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image002 "src=" Http://s3.51cto.com/wyfs02/M01/8C/88/wKioL1hvS2Dhz78LAADsrjKxb_U770.png "height=" 194 "/>
Please replace the AB1 in the email address you need to adjust.
2) Adjust the single mail sending and receiving limit for all current mailboxes to 150M.
Get-mailbox | Set-mailbox-maxreceivesize 150mb-maxsendsize 150MB
How to view the single message receive/send size for all mailboxes in your organization. You can use the following PowerShell commands
Get-mailbox | FL name,primarysmtpaddress,maxsendsize,maxreceivesize
The output is as follows
650) this.width=650; "title=" clip_image003 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image003 "src=" Http://s3.51cto.com/wyfs02/M02/8C/88/wKioL1hvS2bwCCyHAAFz2xTgoSU147.png "height=" 271 "/>
Set up Exchange online single message size