Welcome to Matts Admin tips. This blog is full of little fixes, tutorials and work-arounds to those anoying problems that a Systems Administrator might face. If you find something that you have found useful please leave me a comment - I appreciate knowing that I've helped! Also, feel free to leave a comment if my tips or ideas don't work in your environment... I monitor them closely and would be happy to help! Matt

Output Exchange 2007 Retry/Ready Messages

Here’s a quick and dirty Exchange 2007 command-let that will output all the outgoing emails that are not being delivered. It Checks the message status (NOT “Active) and the message retry count (GT 0) and outputs the results. Get-Message -Server SERVER01 -IncludeRecipientInfo | Where{$_.RetryCount -gt 0} | Where{$_.Status -ne “Active”} | SELECT FromAddress, Recipients, LastError [...]

Tags: , , ,

Filed under:Uncategorized

Exchange Management Shell Export Mailbox to PST script

Here is s nifty script I chucked together that will prompt for a user name, configure the required permissions and then export the users mailbox to a PST file. All you need to do is change the $TargetArchiveDir location to the folder you wish to save the PST’s to. I’d suggest using a file share [...]

Tags: , , ,

Filed under:Uncategorized

Auto Email when StorageGroupCopy Status Failed

Man! I’m killing these powershell scripts today – and they’ve all been related to alerting/reporting via email. If you’ve missed my two other posts – there is a mailbox size report (http://mattlog.net/2009/03/12/auto-email-exchange-2007-mailbox-report/) and a StorageGroupCopyStatus report (http://mattlog.net/2009/03/12/auto-email-exchange-2007-storagegroupcopystatus/) This one is a little more useful. Basically, this PowerShell script checks the SummaryCopyStatus and checks that it’s [...]

Tags: , , ,

Filed under:Uncategorized

Auto Email Exchange 2007 StorageGroupCopyStatus

Exchange 2007′s Storage Group Copy feature is one of my favourites, however the one area it is really lacking is the reporting. You need to manually run the Get-StorageGroupCopyStatus -Server INITIALSERVER -StandbyMachine TARGETSERVER to find that your SCR is Healthy. I’ve been playing around writing some simple PowerShell scripts today so I thought I would [...]

Tags: , , , ,

Filed under:Uncategorized

Auto Email Exchange 2007 Mailbox Report

Hi all. I’ve written this simple PowerShell script to output your user mailboxes, their total size and the item count – the script will then email the output to a specified account in a pretty HTML table format. Feel free to download the .ps1 file and run it as you wish. Remember that you need [...]

Tags: , , , ,

Filed under:Uncategorized

MSExchangeIS Error 9646

MSExchangeIS Error 9646: ” Mapi session “/o=DOMAIN/ou=Administrative Group/cn=Recipients/cn=UserName” Exceeded the maximum of 500 objects of type “objtFolder” “ As the error message suggests, the user experiencing this error has more than 500 folder objects open. Although this sounds pretty strait forward – its extremely difficult to have over 500 folders open – and highly unlikely [...]

Tags: , ,

Filed under:Uncategorized

Exchange 2007 500 Firewall Error

If your having intermittent DSN errors returning to your users with the message “mail.someremoteserver.com #500 Firewall Error##” I’ve found the the error is actually due to your local Cisco router/firewall. It seems that some Cisco routers and IOS versions that use the ip inspect command on the outgoing interface have problems with the newer Exchange [...]

Tags: , , ,

Filed under:Uncategorized

Exchange 2007 not delivering mail (messages sitting in Outbox)

If your email messages are not being delivered – just sitting in the Outbox, it could be due to 2007 resource monitor pausing the delivery due to “insufficient resources” You can check to see if your server is showing these symptoms by TELNETTing to the localhost on port 25 and attempting to manually deliver a [...]

Tags: , , ,

Filed under:Uncategorized

Standby Continuous Replication (SCR) “Suspended”

If you find that your Exchange 2007 Standby Continuous Replication isn’t working correctly, firstly run the following command from the source server using the Exchange Management Shell (EMS): Get-StorageGroupCopyStatus – StandbyMachine EXCHANGESERVERNAME You will then receive the Copy status queues etc. If you receive the following “Suspended” output your replication isn’t working: There are a [...]

Tags: , , ,

Filed under:Uncategorized

Exchange 2007 Public Folder Replication Error

If you have just created a new Public Folder Database on an Exchange 2007 server and you wish to replicate the data from another 2007 public folder structure you may receive the following error when enabling the replication: set-publicfolder – Mapi Exception not found: Unable to set properties on object The details in the error [...]

Tags: , ,

Filed under:Uncategorized