Home > Exchange, Exchange 2007, Exchange 2010, Microsoft, Migration, Other, PowerShell > Enable / Disable Circular Logging on all databases

Enable / Disable Circular Logging on all databases


There are some cases where Circular logging can be helpful – when migrating a large amount of email in from another system for example.

Get-StorageGroup | Set-StorageGroup -CircularLoggingEnabled $true

However, remember to re-disable it when done;

Get-StorageGroup | Set-StorageGroup -CircularLoggingEnabled $false

The Information Store must be restarted for either of these changes to take place – if you have a DAG then bounce over the active copy to another server (and back if required) to do this.

As correctly pointed out be MB the above is 2007 shell not 2010 (my bad!!)

The below is 2010 shell instead;

Get-MailboxDatabase | Set-MailboxDatabase -CircularLoggingEnabled $true

Bizarrely I must have been thinking of 2010 when I wrote this as I clearly mention DAG’s

However both require an Information Store restart – failover usually achieves this just make sure to take all databases on that node over and if in doubt then restart the service 😀

Sorry guys!!!!

Advertisements
  1. mb
    May 26, 2011 at 8:05 pm

    This does not work on Exchange 2010. I believe it’s 2007, because the Get-StorageGroup cmdlet doesn’t exist on Exchange 2010

    • May 26, 2011 at 8:41 pm

      Mb, you are indeed right. I must have mis-categorised this as the 2010 removed the Storage Group concept entirely and moved db objects to organisational level if I remember right.

      I’ll update the post to reflect 2010; the correct 2010 shell is;

      Get-MailboxDatabase | Set-MailboxDatabase -CircularLoggingEnabled $true

      • May 26, 2011 at 8:48 pm

        Updated 😀

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: