remove mailbox after account deleted on AD
Hi,
We having problem. We using Exch 2007. When to remove old mailbox, our admin accidently delete user account on AD. How to delete on exchange. If using power shell, what is the command line?
Thank you.
jaie
February 17th, 2012 2:10am
Hi
Disable-Mailbox -id username
http://technet.microsoft.com/en-us/library/aa997210(v=exchg.80).aspx
Cheers, Steve
Free Windows Admin Tool Kit Click here and download it now
February 17th, 2012 2:35am
This command applies for exch 2007?
Remove-StoreMailbox -Database MBD01 -Identity Ayla -MailboxState SoftDeletedjaie
February 17th, 2012 2:36am
You would use that command to purge a mailbox from the database that is either already disabled or is in a state of "soft deleted". Soft deleted mailboxes are ones that have been moved to other stores or organisations.
Free Windows Admin Tool Kit Click here and download it now
February 17th, 2012 2:44am
How to remove mailbox user permanently, if user id already deleted from ADUC.
jaie
February 17th, 2012 2:53am
It's just a slight change to your command above:
Remove-StoreMailbox -Database MBD01 -Identity Ayla -MailboxState disabled
Free Windows Admin Tool Kit Click here and download it now
February 17th, 2012 3:15am
You don't use "Remove" for delete mailbox on Exchange Management Console. Because this command is deleting user account and mailbox. You use "Disable" for delete mailbox. Get more information link below.
http://www.msexchange.org/tutorials/managing-mailboxes-exchange-server-2007-part2.html
February 17th, 2012 3:19am
You can use following commands to delete the mailbox:
$Mailbox=Get-MailboxStatistics| Where{$_.DisplayName -eq "Mailbox Name"}
Remove-Mailbox -Database "Database Name" -StoreMailboxIdentity $Mailbox.MailboxGuid
Per my knowledge, when you delete the user in AD,the mailbox will be stated as disconnected mailbox. so you also can connect this mailbox to a new user.
If you didn't see this maibox under disconnected mailbox, you can run Clean-MailboxDatabase (on the database which that mailbox hosted).
Thanks,
EvanEvan Liu
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
February 20th, 2012 2:46am
You can use following commands to delete the mailbox:
$Mailbox=Get-MailboxStatistics| Where{$_.DisplayName -eq "Mailbox Name"}
Remove-Mailbox -Database "Database Name" -StoreMailboxIdentity $Mailbox.MailboxGuid
Per my knowledge, when you delete the user in AD,the mailbox will be stated as disconnected mailbox. so you also can connect this mailbox to a new user.
If you didn't see this maibox under disconnected mailbox, you can run Clean-MailboxDatabase (on the database which that mailbox hosted).
Thanks,
EvanEvan Liu
TechNet Community Support
February 20th, 2012 10:41am
Thank you all for your help.jaie
Free Windows Admin Tool Kit Click here and download it now
February 21st, 2012 1:06am