This article has been archived. It is offered "as is" and will no longer be updated.
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.
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.
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: