I cover PowerShell
basics elsewhere and I am assuming that you have a working knowledge of the
cmdlets and how to research parameters. Incidentally, I use PowerShell
2.0s graphical ISE, rather than the command line version.
New-SystemMessage Syntax
The first of the required elements is the DSN code number, for example
5.1.2. See more about NDR codes.
Naturally, you need the -Text string to display in the message.
New-SystemMessage -DsnCode 5.1.2 -Text 'The user's mailbox has
been<B>disabled</B>. Please visit <A
HREF="http://help.yourplace.com">Internal Support</A> or contact
"InfoSec" for more information.' -Internal $true -Language En
Note 1: The language is English (En) and the
message is for internal users only ($true).
Here is a
free tool to monitor your Exchange Server. Download and
install the utility, then inspect your mail queues, monitor the Exchange
server's memory, confirm there is enough disk space and check the CPU
utilization. This is the real deal - there is no catch. SolarWinds
provides this fully-functioning product for free, as part of their commitment to
supporting the network management community.
New-SystemMessage -DsnCode 5.1.1 -Text "This recipient cannot be found
in your Exchange Organization. Check the name spelling. If
that does not work deleting your Outlook Cache and resend" -Internal
$true -Language EN
Getting Started with PowerShell
I cover PowerShell
basics elsewhere and I am assuming that you have a working knowledge of the
cmdlets. Incidentally, I use PowerShell
2.0's graphical ISE, rather than the command line version.
Summary of PowerShell New-SystemMessage
Here is an useful PowerShell command to customize error messages should
Exchange 2010 be unable to deliver an email.
Guy Recommends: SolarWinds' Free Bulk Mailbox Import Tool
Import users, complete with mailbox from a spreadsheet. Just provide a list of the
users with the fields in the
top row, and save as .csv file. Then launch this FREE utility and match
your Exchange fields with AD's
attributes, click and import the users. Optionally, you can
provide the name of the OU where the new mailboxes will be born.
There are also two bonus tools in the free download, and all 3 have been approved by Microsoft:
Bulk-import new users and mailboxes into Active Directory.
Windows Management Instrumentation (WMI) is one of the hidden
treasures of Microsoft operating systems.
Fortunately, SolarWinds
have created the
Free WMI Monitor so that you can actually see and understand these gems of
performance information. Take the guess work out of which
WMI counters to use for applications like Microsoft Active Directory,
SQL or Exchange Server.