Cannot purge disconneted mailbox - Exchange 2007
Hi, I've read several threads about people having issues when trying to purge a diconnected mailbox. I've also tried this but the powershell returns an entry that it does not recognize the database name, or the server name for that matter. Unless I'm misunderstanding it? Please take a look. [PS] C:\Windows\System32>Get-MailboxStatistics -database Mailbox Database | wher e {$_.disconnectdate -ne $null} | foreach {Remove-mailbox -database $_.database -storemailboxidentity $_.mailboxguid} Get-MailboxStatistics : A parameter cannot be found that matches parameter name 'Database'. At line:1 char:22 + Get-MailboxStatistics <<<< -database Mailbox Database | where {$_.disconnect date -ne $null} | foreach {Remove-mailbox -database $_.database -storemailboxid entity $_.mailboxguid}
January 10th, 2011 5:09pm

On Mon, 10 Jan 2011 22:04:47 +0000, Jacek Gawecki wrote: >I've read several threads about people having issues when trying to purge a diconnected mailbox. I've also tried this but the powershell returns an entry that it does not recognize the database name, or the server name for that matter. Unless I'm misunderstanding it? Please take a look. The value following the -database needs to be protected since it contains a space. get-mailboxstatistics -database "mailbox database" . . . >[PS] C:\Windows\System32>Get-MailboxStatistics -database Mailbox Database | wher e {$_.disconnectdate -ne $null} | foreach {Remove-mailbox -database $_.database -storemailboxidentity $_.mailboxguid} Get-MailboxStatistics : A parameter cannot be found that matches parameter name 'Database'. At line:1 char:22 + Get-MailboxStatistics <<<< -database Mailbox Database | where {$_.disconnect date -ne $null} | foreach {Remove-mailbox -database $_.database -storemailboxid entity $_.mailboxguid} --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2011 10:29pm

Doh! I can't believe I've missed this. Thank you Rich, I really appreciate it.
January 11th, 2011 8:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics