Exchangemaster GmbH company logo

Exchangemaster GmbH - A Swiss IT Consultancy
Services
References
Partners
Contact
Getting Started
FAQs
Presentations
Articles
Community
Search
Popular
Tell-a-Friend
Follow Me

Follow exchangemaster on Twitter

Who's Online
We have 45 guests online
Syndicate
FAQ 000117 - Retrieve Send limits via Powershell PDF Print E-mail
User Rating: / 13
PoorBest 
Written by Dejan Foro   
Sep 12, 2013 at 07:24 PM

This article applies to:

Exchange 2010 SP3, Exchange 2013

 

PROBLEM

Send limits in Exchange 2010 are set in 5 different places:

- Organizational level

- Transport level

- Send and Receive Connectors 

- User level

Not all of them are visile in GUI and finding all of them and the syntax of PowerShell commands is fairly time consumig.

 

SOLUTION

The following script reads those vaules on Organizational, Transport and Send/Receive connectors and presents the vaules in easy readable format. For reading settings for a specific user you can use the script given in FAQ 000118

 

 

<#
.NAME
    CheckSendLimits    
.VERSION
    2.0    
.AUTHOR
    Dejan Foro,
    Exchangemaster GmbH, www.exchangemaster.ch
.DATE
    12 July 2016
.DESCRIPTION
Script checks for message sending limits (maximum allowed size and number of recipients) at organizational, transport and connector levels.
Additionally these limits can be set on user level. Please use the CheckUserLimits.ps1 script to check the limits for a specific user.
#>


cls
#Load Powershell Exchange snap-ins
Get-PSSnapin -Registered | where {$_.Name -like "*exchange*"} | Add-PSSnapin

#Generate Report Header Info
Write-Host
Write-Host "Script Name: CheckLimits.ps1"
Write-Host "Author: Dejan Foro, Exchangemaster GmbH, www.exchangemaster.ch"
$Date = Get-Date -DisplayHint DateTime
Write-Host "Output created on: " , $Date
$OrganizationName= Get-OrganizationConfig | Select-Object Identity
Write-Host "Exchange Organization: " $OrganizationName.Identity
Write-Host

#Check limits on Organisation level
$OrganizationalLimits = Get-TransportConfig | Select-Object MaxRecipientEnvelopeLimit, MaxReceiveSize, MaxSendSize | Format-Table -AutoSize
Write-Host "Organizational level limits: "
$OrganizationalLimits

#Check limits on Transport Server
$TransportLimits = Get-TransportServer | Select-Object Name, PickupDirectoryMaxRecipientsPerMessage | Format-Table -AutoSize
Write-Host "Transport Level Limits: "
$TransportLimits
Write-Host

#Check limits on Receive connectors
$ReceiveConnectorLimits = Get-ReceiveConnector | Select-Object Identity, MaxMessageSize, MaxRecipientsPerMessage | Format-Table -AutoSize
Write-Host "Receive Connector Limits: "
$ReceiveConnectorLimits
Write-Host

#Check limits on Send connectors
$SendConnectorLimits = Get-SendConnector | Select-Object Identity, MaxMessageSize | Format-Table -AutoSize
Write-Host "Send Connector Limits: "
$SendConnectorLimits
Write-Host

Write-Host "Please note that additionally limits can be set on user level as well."
Write-Host "Use the CheckUserLimits.ps1 script to check the limits for a specific user."
Write-Host

 

Here is an example of the output generated by the script:

 

Script Name: CheckLimits.ps1
Author: Dejan Foro, Exchangemaster GmbH www.exchangemaster.net
Output created on:  12.09.2013 11:12:42
Exchange Organization:  EXCHANGEMASTER

Organizational level limits:

MaxRecipientEnvelopeLimit MaxReceiveSize           MaxSendSize
------------------------- --------------           -----------
5000                      21 MB (22,020,096 bytes) 21 MB (22,020,096 bytes)

Transport Level Limits:

Name    PickupDirectoryMaxRecipientsPerMessage
----    --------------------------------------
SERVER01                                   500
SERVER02                                   500


Receive Connector Limits:

Identity                MaxMessageSize           MaxRecipientPerMessage
--------                --------------           ----------------------
SERVER01\Default SERVER01 21 MB (22,020,096 bytes)                  500
SERVER01\Client SERVER01  21 MB (22,020,096 bytes)                  500
SERVER02\Default SERVER02 21 MB (22,020,096 bytes)                  500
SERVER02\Client SERVER02  21 MB (22,020,096 bytes)                  500
SERVER01\SMTP-Relay       21 MB (22,020,096 bytes)                  200
SERVER02\SMTP-Relay       21 MB (22,020,096 bytes)                  200


Send Connector Limits:

Identity      MaxMessageSize
--------      --------------
SMTP-Internet unlimited
HIN           10 MB (10,485,760 bytes)
IMOSS         unlimited
MOSS          unlimited
SMOSS         unlimited
Spam          10 MB (10,485,760 bytes)
SSP           unlimited
ISP           unlimited
SP            unlimited



Please note that additionally limits can be set on user level as well.
Use the CheckUserLimits.ps1 script to check the limits for a specific user.

 

Last Updated ( Jul 12, 2016 at 06:43 AM )
<Previous   Next>