設置Office 365郵箱默認發送和接收郵件大小限制

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

注意:

  • 對於 由世紀互聯運營的 Office 365,使用 ConnectionUri 值:https://partner.outlook.cn/PowerShell
  • 對於 Office 365 Germany,使用 ConnectionUri 值: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

相關文章
相關標籤/搜索