The best thing you can do to script Exchange 2007 with PowerShell is to
get the QAD snap-in.
This is a useful list of the main verbs for manipulating Exchange 2007 via Microsoft's new command shell. Look out for pairs e.g. Enable with Disable, Get with Set.
To investigate try Get-help s*
where 's' is the first letter of the command that you are researching. * is the usual wildcard. I have discovered that exchange specific commands begin with a capital e.g. Get-Mailbox but
Get-Eventlog.
Verb
Explanation
Disable
Disable commands set the specified Exchange Server 2007 object's Enabled status to $false. This prevents it from processing data even though the object exists.
Enable
Enable commands set the specified Exchange Server 2007 object's Enabled status to $true. This allows it to process data.
Get
Get commands retrieve information about a particular Exchange Server 2007 object.
Note Most Get commands only return summary information when you run them. To tell the
Get command to return verbose information when you run a command, pipe the command to the Format‑List command.
Install
Install commands install a new object or feature on an Exchange Server 2007 server.
Move
Move commands relocate the specified Exchange Server 2007 object from one container or server to another.
New
New commands create Exchange Server 2007 objects e.g. Mailcontact
Remove
Remove commands delete the specified Exchange Server 2007 object.
Set
Set commands modify the properties of an existing Exchange Server 2007 object.
Test
Test commands test specific Exchange Server 2007 components and provide log files for examination.
Uninstall
Uninstall commands remove an object or feature from an Exchange Server 2007 server.
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:
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.