Office 365默认的 35MB 的邮件大小限制。Office 365 最大是支持 150MB 的邮件体积的。html
咱们只需用 Windows Powershell 链接 Office 365 ,而后经过命令修改 Exchange Online 中的邮箱计划便可。git
方法以下:github
一、链接到 Office 365 PowerShellshell
借助 Office 365 PowerShell,能够经过命令行管理 Office 365 管理中心设置。链接到 Office 365 PowerShell 是一个很是简单的三步流程:安装必需软件,运行必需软件,而后链接到 Office 365 组织windows
步骤 1:安装所需软件网络
这些步骤只需在您的计算机上执行一次便可,而不是在每次链接时都要求执行。可是,您可能须要按期安装较新版本的软件。命令行
安装 64 位版本的 Microsoft Online Services 登陆助手:适用于 IT 专业人员 RTW 的 Microsoft Online Services 登陆助手(https://go.microsoft.com/fwlink/p/?LinkId=286152)。3d
使用如下步骤安装 64 位版本的 用于 Windows PowerShell 的 Microsoft Azure Active Directory 模块:code
打开 Azure Active Directory 链接网页:htm
http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185
在页面底部的“下载中的文件”中,单击“下载”以获取 AdministrationConfig-V1.1.166.0-GA.msi 文件,而后安装该文件。
步骤 2:打开 Windows Azure Active Directory 模块
使用如下某个基于 Windows 版本的方法查找并打开 用于 Windows PowerShell 的 Microsoft Azure Active Directory 模块:
推荐方式
直接经过安装Windows PowerShell方式,必定要最新版本的,下载地址:https://github.com/Azure/azure-powershell/releases,用右键管理员权限打开
若是经过windows powershell方式链接office 365 咱们首先须要导入 Office 365 模块。为此,请在 Windows PowerShell 提示符处运行如下命令:
Import-Module MsOnline
验证导入是否导入,请运行如下命令:
Get-Module
在此命令返回的模块列表中,您应该会看到如下内容:
Manifest 1.0 MSOnline {Add-MsolForeignGroupToRole, Add-MsolG...}
步骤 3:链接到 Office 365 订阅
仅使用账户名和密码链接:
一、在“用于 Windows PowerShell 的 Microsoft Azure Active Directory 模块”命令窗口中,运行如下命令。
$UserCredential = Get-Credential
输入office365 中国版的用户名和密码
登录成功后以下图:
另外请注意若是输入的是一下命令登录的窗口是国外地址
命令:Connect-MsolService
2.一、国际版本运行如下命令:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
注意:
https://partner.outlook.cn/PowerShell
https://outlook.office.de/powershell-liveid/
2.二、国内版本运行如下命令:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirectionhttps://partner.outlook.cn/PowerShell
成功截图:
参考:https://technet.microsoft.com/zh-cn/library/jj984289%28v=exchg.160%29.aspx?f=255&MSPPError=-2147217396
3 运行如下命令
Import-PSSession $Session
四、运行如下命令查看当前默认的 Office 365 邮箱计划,也就是默认的官方大小命令:
Get-MailboxPlan | Where {$_.IsDefault -eq "True"}
五、运行如下命令查看默认邮箱计划的MaxSendSize和MaxReceiveSize属性:
Get-MailboxPlan | Where {$_.IsDefault -eq "True"} | Select -Property MaxSendSize, MaxReceiveSize
MaxSendSize控制最大发送邮件大小, MaxReceiveSize控制最大接收邮件大小。从返回的数值咱们能够看到,当前MaxSendSize为35MB,而MaxReceiveSize则为36MB
六、修改邮箱附件大小为最大150mb,注意网络上的文章设置是错误的(https://www.sohu.com/a/194448543_99961225)
正确命令为:
get-mailbox |Set-Mailbox -MaxSendSize 150mb
get-mailbox |Set-Mailbox -MaxReceiveSize 150mb
七、查看设置后的邮箱大小命令为:
Get-Mailbox | Select -Property MaxSendSize, MaxReceiveSize
注意此命令是统一把全部帐号统一设置为150mb。
附件下载:经过windows powershell 修改 Office 365默认的 35MB 的邮件大小限制
参考网址:http://www.mamicode.com/info-detail-494553.html
https://technet.microsoft.com/zh-cn/library/dn975125.aspx
http://www.exchangecn.com/office365/20150108_540.html
http://www.cnblogs.com/gill/p/6682774.html