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 118 guests online
Syndicate
FAQ 000118 - Retrieve User Limits via PowerShell PDF Print E-mail
User Rating: / 22
PoorBest 
Written by Dejan Foro   
Sep 12, 2013 at 05:52 PM

This article applies to:

Exchange 2010 SP3 

 

The following script reads the MaxSendSize, MaxRecipientLimits and MaxReceiveSize for a specified user.


<#
.NAME
    CheckUserLimits   
.VERSION
    1.0   
.AUTHOR
    Dejan Foro,
    Exchangemaster GmbH, www.exchangemaster.net
.DATE
    12 September 2013
.DESCRIPTION
Script checks for message limits (MaxSendSize, RecipientLimits, MaxReceiveSize) for a specified user

#>
cls
Write-Host
Write-Host "Script Name: CheckUserLimits.ps1"
Write-Host "Author: Dejan Foro, Exchangemaster GmbH", www.exchangemaster.net
$Date = Get-Date -DisplayHint DateTime
Write-Host "Output created on: " , $Date
Write-Host
Write-Host "Give in the user you want to check."
Write-Host "Acceptable inputf values are SmtpAddress, Alias, Domain\Account, User principal name (UPN), Display name, GUID, Distinguished name (DN), LegacyExchangeDN"
Write-Host
do{
    $user = Read-Host "user"
    Get-Mailbox -Identity $user | Select-Object Name, PrimarySMTPAddress, MaxSendSize, RecipientLimits, MaxReceiveSize | Format-Table -AutoSize
    $YesNoResponse = Read-Host "Do you want to check limits for another user? (Y/N)"
    }
until($YesNoResponse -eq "n")

 

Sample script output:


Script Name: CheckUserLimits.ps1
Author: Dejan Foro, Exchangemaster GmbH www.exchangemaster.net
Output created on:  12.09.2013 17:47:31

Give in the user you want to check.
Acceptable inputf values are SmtpAddress, Alias, Domain\Account, User principal name (UPN), Display name, GUID, Distinguished name (DN), LegacyExchangeDN


user: f2d

Name             PrimarySmtpAddress             MaxSendSize RecipientLimits MaxReceiveSize
----             ------------------             ----------- --------------- --------------
Foro Dejan (F2D)   unlimited   unlimited       unlimited


Do you want to check limits for another user? (Y/N): y
user:

To check for Organisational, Transport or send/Receive connector limits you can use the CheckSendLimits.ps1 script presented in FAQ 000117.

Last Updated ( Sep 12, 2013 at 04:55 PM )
<Previous   Next>