Hello All
I am reposting this in the exchange server forum, as i felt posting in the general disucssion was a wrong thing to do.
POST Starts from here ******
I have been using a script which reports mailbox count in our environment on a day-to-day basis. Of late, script fails to send an mail about the latest mailbox count and when i try to execute the script manually from the exchange management shell it reports an error, pasted below:
Get-Mailbox : Exception of type 'System.OutOfMemoryException' was thrown. At C:\Program Files\Microsoft Identity Integration Server\MaData\report.ps1:4 c har:24 + $Resource = Get-Mailbox <<<< -ResultSize:unlimited | Where {$_.RecipientType Details -eq "RoomMailbox" } + CategoryInfo : NotSpecified: (:) [Get-Mailbox], OutOfMemoryExce ption + FullyQualifiedErrorId : System.OutOfMemoryException,Microsoft.Exchange.M anagement.RecipientTasks.GetMailbox
WARNING: An unexpected error has occurred and debug information is being generated: Exception of type 'System.OutOfMemoryException' was thrown. Get-User : Exception of type 'System.OutOfMemoryException' was thrown. At C:\Program Files\Microsoft Identity Integration Server\MaData\report.ps1:7 c har:21 + $MailUser = Get-User <<<< -Resultsize:unlimited | Where {$_.RecipientTypeDet ails -eq "MailUser" } + CategoryInfo : NotSpecified: (:) [Get-User], OutOfMemoryExcepti on + FullyQualifiedErrorId : System.OutOfMemoryException,Microsoft.Exchange.M anagement.RecipientTasks.GetUser
Strangely this script used to work fine since its implementation, it started throwing errors for the last few days. Wondering what wrong, as nothing has been changed. Any suggestions, Folks? Best Regards Justin