출처 : http://msmvps.com/blogs/andersonpatricio/archive/2007/10/08/removing-disconnected-mailboxes-in-exchange-server-2007.aspx
Removing disconnected mailboxes in Exchange Server 2007
Hello folks,
Exchange Server 2007 doesn't allow us to purge the disconnected mailbox. In order to remove one or multiple disconnected mailboxes we can be performing these steps:
Listing all disconnected mailboxes
Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
Removing a single entry
Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid> -confirm:$false
Removing all users at the same time
$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
Now that we have all disconnected mailboxes in a var, we can run the following cmdlet to remove all of them:
$users | ForEach { Remove-Mailbox -Database "Mailbox Database" -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }
Best Regards,
Anderson Patrico
'.NET' 카테고리의 다른 글
도메인 가입된 PC 에서 원격데스크탑 접근시 "터미널서비스를 통한 로그온 허용" (0) | 2009.08.05 |
---|---|
office communicator 2007 r2 BUG???? Contactid 를 지원 안해?? 흠... (0) | 2009.07.29 |
Communicator 2007 R2 Custom Tabs Custom Tab not showing up (0) | 2009.05.26 |
[EMS] Exchange Management Shell 로 모든 사용자의 메일 박스를 억세스 할 수 있는 스크립트 (0) | 2009.05.15 |
Quartz.NET - Enterprise Job Scheduler for .NET Platform (0) | 2009.05.08 |
Comments
Ghillie Suits » Removing disconnected mailboxes in Exchange Server 2007 - Anderson Patricio Get-news Blog said:
Pingback from Ghillie Suits » Removing disconnected mailboxes in Exchange Server 2007 - Anderson Patricio Get-news Blog
Jon said:
THANK YOU!!! THANK YOU!!! THANK YOU!!! THANK YOU!!! THANK YOU!!!
This worked GREAT!!
Daniel said:
Thanks...
just a little improvment to remove on all databases of the server:
$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid,Database
$users | ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }
Exchange 2007 - boites aux lettres d?connect?es | hilpers said:
Pingback from Exchange 2007 - boites aux lettres d?connect?es | hilpers
Exchange 2007 cannot purge a disconnected mbx after 30-day retenti | keyongtech said:
Pingback from Exchange 2007 cannot purge a disconnected mbx after 30-day retenti | keyongtech
Data recovery service experts said:
Recovery starts with knowing which solution you need to reclaim the lost data. File recovery is the most common one but advanced users often rely a a partition product if the circumstance allows it. Service is for a failing hard drive.