how to purge multiple disconnected user account in Exchange 2007

This cmdlets provides you an easy way to purge disconnected user accounts.

1.$store= Get-MailboxDatabase
"\\"

2.Get-MailboxStatistics -database $store | where {$_.disconnectdate -ne $null} |
foreach {remove-mailbox -database $store -storemailboxidentity $_.displayname}