This article will help you Increase the Email Attachment size on Office365 via PowerShell.
- Login to Office 365 via Azure PowerShell. It’s advised to install the latest version of PowerShell. Prerequisite for Azure PowerShell is Microsoft Online Sign-in Assistant. You can download it from here.
- You can download the Azure PowerShell from the links below:
- Install the Sign-in Assistant, and Azure Active Directory Module, and launch Windows Azure PowerShell as Administrator (using Run as Administrator)
- Run the following commands to connect with your Office 365 account:
- Set-ExecutionPolicy = unrestricted
- $cred = Get-Credential -Credential $user
Enter the credentials for your Office 365 Admin account and hit OK.
- Import-Module MSOnline
- Connect-MsolService -Credential $cred
- $msoExchangeURL = “https://ps.outlook.com/powershell/”
- $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $msoExchangeURL -Credential $cred -Authentication Basic -AllowRedirection
- Import-PSSession $session
- Now you can check the current attachment limit using Get-TransportConfig command, however this command will provide you will a lot of info that you may not need. Hence run the following to filter the required results only:
Get-TransportConfig | FL *MaxMessage*
- Here you’ll get the following results:
- In above image, you can see how much data you can send in email as attachments to external and internal users. You can change this by running the following commands:
Set-TransportConfig -ExternalDsnMaxMessageAttachSize xxMB
Set-TransportConfig -InternalDsnMaxMessageAttachSize xxMB
Note: Here, replace the xx with the about of data you would like to allow (as shown in the image).
- Repeat this steps for both Internal and External values.
You can check the config again to see the new value is in place for both the commands.
Latest posts by Rishi Chaudhary (see all)
- ShadowCopy Backup after renaming VSSADMIN.EXE - October 5, 2016
- No Network Connection after Windows 10 Upgrade – Fixed - August 25, 2015
- Windows 10 System Tray Notification Issue - August 7, 2015