22 Jul 2010 @ 5:01 AM 

A while ago I came across a mailbox that needed to be deleted… but the assosiated useraccount was in an old domain that was no longer in the air and the mailbox didn’t go to “disconnected mailbox”.
So when I tried to delete the mailbox through the GUI, I got an error telling me that the associated user account could not be found.
While using the GUI, deleting the mailbox drove me next to mad… it would not go!

My solution was to be found in PowerShell :-)

First use a command to get the mailbox (and it’s statistics):
$Emailbox = Get-MailboxStatistics | Where{$_.DisplayName -eq “Steve Jobs”}

Second use a command to delete it:
Remove-Mailbox -Database ” MailDatabase1” -StoreMailboxIdentity $Emailbox.MailboxGuid

And he was gone… finally!

Post to Twitter

Posted By: Jeff Wouters
Last Edit: 23 Oct 2010 @ 06:04 AM

EmailPermalinkComments (0)
Tags
Categories: Microsoft, PowerShell

 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 251
  • Comments » 430
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Contact



    No Child Pages.