PowerShell – Exchange 2007 Nouns
The best thing you can do to script Exchange 2007 with PowerShell is to get the QAD snap-In. Meanwhile, here is a list of the main nouns for manipulating Exchange 2007 via Microsoft’s PowerShell command shell.
To investigate try Get-Help m* where ‘m’ 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 uppercase e.g. Get-Mailbox (Upper ‘G’ and ‘M’) but Get-Eventlog (lower case ‘g’ and ‘e’)
Noun | Switches |
---|---|
Mailbox and MailboxStatistics | -server |
MailboxDatabase | -storagegroup |
Mailcontact | -identity guyt |
User and MailUser | -identity |
Contact | -OrganizationalUnit managers |
Group and DistributionGroup | |
StorageGroup | |
Message | |
Queue | Also Freeze-Queue |
ExchangeServer | -domain |
Recipient | -resultsize 50 |
Guy Recommends: SolarWinds’ Free Bulk Import Tool![Free Download Solarwinds Bulk Import Tool](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODEiIGhlaWdodD0iMTQ2IiB2aWV3Qm94PSIwIDAgMTgxIDE0NiI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgc3R5bGU9ImZpbGw6I2NmZDRkYjtmaWxsLW9wYWNpdHk6IDAuMTsiLz48L3N2Zz4=)
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
• PowerShell Tutorials • Methods • Cmdlets • PS Snapin • Profile.ps1 • Exchange 2007
• Command & Expression Mode • PowerShell pipeline (|) • PowerShell ‘where‘ • PowerShell ‘Sort’
• Windows PowerShell Modules • Import-Module • PowerShell Module Directory
If you see an error of any kind, do let me know. Please report any factual mistakes, grammatical errors or broken links.