Get the message size limits

Get the message size limits

In order to set the message and attachement limits in Exchange 2007, you need to retreive the current limits. This script provides you with the information and retrieves the current limits for the receive-,send-connectors and transport configuration. This script is specific for the Hub Transport Role.

###################################
$AppName = “get-message-size-limits.ps1″
$AppVer  = “v1.0 [30 - 01 - 2008]“
#
#Written By Hans Sleurink
###################################

###################################
#Display script name and version
###################################
Write-host $AppName -NoNewLine -foregroundcolor Blue
Write-Host “: ” $AppVer -foregroundcolor Blue
Write-host “”

##########
write-output “– Transportconfig Info –”
Get-transportconfig | select MaxReceiveSize , MaxSendSize | foreach {
“Max Receive Size: “+$_.MaxReceiveSize
“Max Send Size: “+$_.MaxSendSize
}

##########
write-output “”
write-output “– Receive Connector(s) Info –”
$connr=1
Get-receiveconnector | select identity , Server , MaxMessageSize | foreach {
“$connr ID: “+$_.identity+” (“+$_.Server+”)”
“   Max Message Size: “+$_.MaxMessageSize
$connr++
}

##########
write-output “”
write-output “– Send Connector(s) Info –”
$sendnr=1
Get-SendConnector | select identity , HomeMTA , MaxMessageSize | foreach {
“$sendnr ID: “+$_.identity+” (“+$_.HomeMTA+”)”
“   Max Message Size: “+$_.MaxMessageSize
$sendnr++
}

##########
write-output “”
write-output “– Transport Server(s) Info –”
$transsrv=1
Get-TransportServer |  select identity , ExternalDsnMaxMessageAttachSize , InternalDsnMaxMessageAttachSize  | foreach {
“$transsrv ID: “+$_.identity
“   External Max Attachement Size: “+$_.ExternalDsnMaxMessageAttachSize
“   Internal Max Attachement Size: “+$_.InternalDsnMaxMessageAttachSize
$transsrv++
}

Post to Twitter Post to Delicious Post to Digg Post to Facebook

Comments

One comment a “Get the message size limits”

  • Doesn’t the ExternalDsnMaxMessageAttachSize describe the max size for attachments for the delivery status notifications and not for attachments in general?

    Cheers,
    Thomas

  • Post a comment



Twitter links powered by Tweet This v1.7.3, a WordPress plugin for Twitter.