Some helpful Exchange commands to know

I used to think that I could be considered a ‘seasoned vet’ when it came to Exchange. But that was back before the 2007 release… The new Exchange Management Shell has definitely taken some getting used to. Very powerful – yes. However, you’re still stuck in this small Windows ‘cmd’ screen with it’s poor formatting and unhelpful errors.

Slowly but surely, I’m getting used to the new interface and tools. Here are three commands that I use on a regular basis for reporting and status updates.

This command prints out a sorted list of mailbox sizes and users

Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(KB)";expression={$_.TotalItemSize.Value.ToKB()}},ItemCount


Next, let’s show the current status of replication for a mailbox store. MAIL01 is our master and MAIL02 is being replicated to.

Get-StorageGroupCopyStatus -Identity MAIL01\StorageGroup1 -StandbyMachine MAIL02 | fl


The last one is very important for backups. It checks to see if the Exchange backups are properly working. The file you need to check is the .chk file in the storage folder.

# eseutil /mk M:\StorageGroup2\
Output should look like this:
Extensible Storage Engine Utilities for Microsoft(R) Exchange Server Version 08.03 Copyright (C) Microsoft Corporation. All Rights Reserved.
Initiating FILE DUMP mode...
Checkpoint file: M:\StorageGroup2\e03.chk
LastFullBackupCheckpoint: (0x0,0,0)
Checkpoint: (0xCDCD,300,0)
FullBackup: (0xCBED,8,16)
FullBackup time: 09/28/2011 14:17:45
IncBackup: (0xCD2B,8,16)
IncBackup time: 09/29/2011 20:15:15
Signature: Create time:03/07/2011 15:19:46 Rand:852206513 Computer:
Env (CircLog,Session,Opentbl,VerPage,Cursors,LogBufs,LogFile,Buffers)
( off, 652, 32600, 16384, 32600, 2048, 2048,2000000000)
Operation completed successfully in 0.63 seconds.

Leave a Reply

Your email address will not be published.