First
$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
Then
$users | ForEach { Remove-Mailbox -Database "Mailbox Database" -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }
Showing posts with label exchange 2007. Show all posts
Showing posts with label exchange 2007. Show all posts
Wednesday, July 11, 2012
Subscribe to:
Posts (Atom)