This page explains how to create
Contact and - Mailcontact objects in Exchange 2007. If you are looking for a straightforward example to learn Exchange 2007
PowerShell commands, then Mailcontact is an ideal vehicle to practise.
The key verbs are: get,
new and disable.
To begin with, I recommend a walk-through with
the Exchange Management Console. Firstly it
will clarify the objects that we are creating, secondly it will alert you to nuances such as Aliases don't have spaces.
Our mission is to achieve with PowerShell what you could do manually with the Wizard (See Right). Once you issue the plain command New-Mailcontact, you need to provide information about:
Once created you should see your new Mailcontact. Try viewing all such objects try:
Get-mailcontact | ft -autosize name, alias, ExternalEmailAddress.
Note: ft is an alias or shorthand for format-Table.
Guy Recommends: Solarwinds' Free Bulk Import Tool
Import users from a spreadsheet. Just provide a list of the
users with their fields in the
top row, and save as .csv file. Then launch this FREE utility and match
your fields with AD's
attributes, click to import the users. Optionally, you can
provide the name of the OU where the new accounts will be born.
There are also two bonus tools in this free download, and all 3 have been approved by Microsoft:
Disabling is different from deleting the object. Disabled Mail Contacts appear in the
Exchange System Manager and can be verified by comparing Get-Mailcontact with Get-Contacts. You can also confirm by checking the contents of the Disconnected folder in the Exchange Management Console.
Example 2 Disable a Mailcontact
Disable_Mailcontact 'Eddie Jones'
Note: For names with
spaces, enclose them with single quotes.
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.
If you see an error of any kind, do let me know. Please report any factual mistakes, grammatical errors or broken links, I will be happy to not only to correct the fault, but also to give you credit.
*
Custom Search
Guy Recommends: WMI Monitor and It's Free!
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.