This PowerShell script queries the defined Exchange 2007 server and emails in HTML format the top 25 biggest mailboxes to the defined receipents. Simply create a scheduled task and you can have a automated weekly report:
# Name: top25.ps1
# Purpose: Report on the 25 largest mailboxes on an Exchange server and email this report in HTML format
# Set the Exchange server to run the query against
Powershell and Exchange 2007 allow for setting user mailbox limits (including warning and send / receive restrictions) based on Active Directory Group Membership.
For example, you can create a Powershell script that sets a 1GB mailbox limit for all users in the ‘Exchange Mailbox 1GB Storage Limit’ Active Directory Group. Schedule this script to automatically run overnight and you no longer need to move users between mailstores or manually set limits in the account properties. Code below:
Whilst recently installing the Hub Transport role of Exchange 2007 SP1, the installation failed because it could not start the OpsMan server (it was disabled, another story). After enabling the service I went to reinstall the role and had the error shown below, indicated that I needed to perform the “BuildToBuildUpgrade” action.
Delete the Watermark key and restart your Exchange installation. For me, the Hub Transport role had successfully installed, it just looked like the installation said it had failed after unsuccessfully trying to start the OpsMgr services as one of the last tasks in the installation.