PowerShell Scripting – Exchange 2007 Verbs
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.
|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.|
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 and import the users.
Optionally, you can provide the name of the OU where the new accounts will be born. Download your FREE bulk import tool.
If you need more comprehensive application analysis software,
Download a free trial of SAM (Server & Application Monitor)
If you like this page then please share it with your friends
See more Microsoft PowerShell tutorials
If you see an error of any kind, do let me know. Please report any factual mistakes, grammatical errors or broken links.