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: --- (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
Create a group policy to prevent .PST file storage in Exchange 2007
Synchronizing the Windows Mobile emulator with Exchange Server 2007
Considerations for virtualizing an Exchange Server environment
EMS add-on tool generates graphical Exchange Server 2007 reports
Third-party Exchange Server 2007 backup and restore tools
A primer on the Exchange Server 2007 Exchange Management Shell
Benefits of SAN-based storage in Microsoft Exchange Server 2007
OWA won't load after applying Exchange 2007 SP1 security patch
How to generate HTML reports with the Exchange Management Shell (EMS)
Exchange Server 2007 high availability strategies and SANs
Microsoft Exchange Server 2007 Research

Microsoft Exchange Server Scripts and Programming
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
Control query results with Exchange Management Shell's Format command
How to use Exchange Management Shell's Filter command
How to use the Exchange Management Shell command syntax
Fix OWA message size limit issue after Exchange 2007 SP1 upgrade

Exchange Server Administration Tips
Create a group policy to prevent .PST file storage in Exchange 2007
Synchronizing the Windows Mobile emulator with Exchange Server 2007
Considerations for virtualizing an Exchange Server environment
Why are .PST files a security threat to Exchange Server mailboxes?
EMS add-on tool generates graphical Exchange Server 2007 reports
Third-party Exchange Server 2007 backup and restore tools
Repairing damaged OWA virtual directories in Exchange Server 2003
Exchange Server 2007 hardware planning for continuous replication
Benefits of SAN-based storage in Microsoft Exchange Server 2007
How to generate HTML reports with the Exchange Management Shell (EMS)

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.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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