Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Customize Exchange 2007 mail quota messages from the command line
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Customize Exchange 2007 mail quota messages from the command line


Serdar Yegulalp
07.17.2007
Rating: -4.00- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Exchange Server 2007 administrators can use cmdlets to easily customize mail quota warnings and Delivery Status Notification (DSN) messages. "Cmdlets" (pronounced commandlets) are command-line administrative functions built using Microsoft's PowerShell technology.

To change the Delivery Status Notification message for the DSN error 5.2.2 ("mailbox is full"), you could supply the following cmdlet, all on one line:

New-SystemMessage –DsnCode 5.2.2 –Language En –Internal $false –Text "Sorry, that mailbox is filled to bursting with other messages. You'll have to try again later when they've read a few things."

The syntax is fairly straightforward:

  • DsnCode lets you specify which exact error message to supply a custom string for

  • Language indicates which language to use for the string (in this case, English)

  • Internal, set here to $false, means that this message will be presented to external (i.e., SMTP) users only.

  • Text describes the text of the error message, delimited by double quotes.

To change a quota message, you'd use a syntax like this:

New-SystemMessage –QuotaMessageType WarningMailbox –Language En –Text "Your mailbox is becoming dangerously full. Please remove some messages or talk to your administrator about having your mail account upgraded."

  • QuotaMessageType describes what kind of quota message this is, with WarningMailbox being one of several valid possibilities.

Related Exchange 2007 resources:

Tip: How to create filtered mailbox views in Exchange Server 2007

Tutorial: A primer on Exchange 2007 server roles

Step-by-Step Guide: How to install and configure an Edge Transport server for Exchange 2007

Exchange Server 2007 Reference Center

The other options are self-evident here; the Internal option isn't used in this instance because mail quota messages are internal by default. For a complete breakdown of the commands available, the New-SystemMessage article in the TechNet library has all the details.

Note that New-SystemMessage will only work on Exchange Server computers that have the Hub Transport or Edge Transport server role.

About the author: Serdar Yegulalp is editor of Windows Insight, a newsletter devoted to hints, tips, tricks, news and goodies for all flavors of Windows users.

Do you have comments on this tip? Let us know.

Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a thank-you gift only an IT geek could love.

Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Microsoft Exchange Server 2007
Is your Exchange 2007 hub transport server healthy?
Top 5 Exchange ActiveSync tips
Two useful tools for documenting an Exchange Server installation
Controlling spam in Exchange 2007 at the edge transport server level
Restore Exchange storage groups with DPM 2007
How a hosted Exchange service can help you
Email issues after configuring hosted Exchange server on laptop
Migrating to Exchange 2007 with correct permissions
Virtualize Exchange Server 2007 -- without losing your job
How DSAccess service improves Exchange Server 2007 reliability
Microsoft Exchange Server 2007 Research

Microsoft Exchange Server Scripts and Programming
Removing old disclaimers from Exchange Server 2003
How to run Exchange Management Shell cmdlets in Exchange Server 2007
Automate complex Exchange 2007 Management Shell tasks via scripting
Exchange event sink scripting error when configuring email disclaimer
EMS add-on tool generates graphical Exchange Server 2007 reports
A primer on the Exchange Server 2007 Exchange Management Shell
How to generate HTML reports with the Exchange Management Shell (EMS)
Use the Exchange Management Shell Set command to block senders
How to test Exchange Management Shell commands
Grant or deny permissions to access a user's Exchange 2007 mailbox

Exchange Server Administration Tips
Remove Exchange 2003 objects from AD to install Exchange 2010
Is your Exchange 2007 hub transport server healthy?
Avoid Outlook 2007 performance issues during repairs
Developing an Exchange 2007 server role DR plan
How DSAccess service improves Exchange Server 2007 reliability
An introduction to the Exchange Remote Connectivity Analyzer tool
Monitor Exchange 2007 with disk- and RPC-related counters
DPM 2007 replica inconsistencies in Exchange databases
Track Exchange 2007 mailbox server health using database counters
Digging deeper into Exchange Server 2010

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
application program interface  (SearchExchange.com)
event sink  (SearchExchange.com)
synchronous groupware  (SearchExchange.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts