Posted April 17th, 2009 by Matt Shadbolt
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: EMS, Exchange 2007, Get-Message, PowerShell
Posted March 25th, 2009 by Matt Shadbolt
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: EMS, Exchange 2007, Export-Mailbox, PST
Posted March 12th, 2009 by Matt Shadbolt
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: Exchange 2007, PowerShell, SCR, StorageGroupCopyStatus
Posted March 12th, 2009 by Matt Shadbolt
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: Exchange 2007, PowerShell, SCR, Standby Continuous Replication, StorageGroupCopyStatus
Posted March 12th, 2009 by Matt Shadbolt
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: Email from PowerShell, Email Report, Exchange 2007, Mailbox Size, PowerShell
Posted January 13th, 2009 by Matt Shadbolt
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: Error 9646, Exchange 2007, objFolder
Posted December 31st, 2008 by Matt Shadbolt
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: 500 Firewall Error, cisco, Exchange 2007, ip inspect
Posted October 30th, 2008 by Matt Shadbolt
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: EdgeTransport.exe.CONFIG, Exchange 2007, Exchange Monitoring, localhost
Posted October 26th, 2008 by Matt Shadbolt
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: Exchange 2007, Exchange Management Shell, SCR, Standby Continuous Replication
Posted October 26th, 2008 by Matt Shadbolt
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: Exchange 2007, Public Folder Replication, set-publicfolder