Memory leaks occur in the Powershell.exe process when you run the Get-MailboxStatistics command and the Get-PublicFolderStatistics command in Exchange Server 2007 Service Pack 1

This article has been archived. It is offered "as is" and will no longer be updated.
Symptoms
Memory leaks occur in the Powershell.exe process when you run the Get-MailboxStatistics command and the Get-PublicFolderStatistics command on an Exchange Server 2007 Service Pack 1 (SP1)-based server. Generally, this problem occurs when you run those commands in a script continually.

Note When a memory leak occurs, you can check the Private Bytes counter of the Powershell.exe process in the Performance Monitor tool to find the memory leak.
Cause
This issue occurs because a MAPI session object is created and cannot be disposed of when you run the Get-MailboxStatistics command and the Get-PublicFolderStatistics command.
Resolution
To resolve this problem, install Update Rollup 9 for Exchange 2007 Service Pack 1. For more information about Update Rollup 9 for Exchange Server 2007 Service Pack 1, see the following Exchange Help topic: For more information about how to obtain the latest Exchange service pack or update rollup, see the following Exchange Help topic:
More information
For more information about the Get-PublicFolderStatistics command, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/aa998663.aspx
For more information about the Get-MailboxStatistics command, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/bb124612.aspx
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 969943 - Last Review: 01/16/2015 03:11:20 - Revision: 2.0

  • Microsoft Exchange Server 2007 Service Pack 1
  • kbnosurvey kbarchive kbsurveynew kbexpertiseinter kbfix kbqfe KB969943
Feedback