Is there any way to delete all the content on a User Mailbox? Exchange 2007 SP1
Is there any way to delete all the content on a User Mailbox? Exchange 2007 SP1? Exchange 2007 SP1 I just imported the wrong data to some Mailboxes. Is there any way to delete o clean the information on it? I Imported calendars, contacts, notes and emails. Thanks
December 15th, 2009 11:49pm

I found my own solution. Disable the Mailbox and then delete the disconnected Mailboxes. 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 } Thanks
Free Windows Admin Tool Kit Click here and download it now
December 16th, 2009 1:12am

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

Other recent topics Other recent topics