Link to home
Start Free TrialLog in
Avatar of kam_uk
kam_uk

asked on

Delete mailbox only, not AD account

There is an AD account named Domain\User1 which has an associated mailbox (User1).

I would like to delete the mailbox ONLY, not the AD account. I will then recreate a new, blank, mailbox for User1.

Does anyone know how this is possible with Exchange 2007? With 2003, you could delete a mailbox only via ADUC, but can't see a way to do this in 2007 EMC.
Avatar of Glen Knight
Glen Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

In EMC you need to select disable, this will remove exchange attributes but the user accnt will not be effected
You. Culd also use the Disable-Mailbox command in EMs, see here for ore details: http://technet.microsoft.com/en-us/library/aa997210(v=exchg.80).aspx
Avatar of kam_uk
kam_uk

ASKER

Hi Demazter

Thanks, but what I want to do is delete the mailbox and recreate it. If I just disable the mailbox, then that mailbox will be hanging around as a disconnected mailbox wouldn't it? Is there a way to delete a disconnected mailbox without affecting the AD account?
ASKER CERTIFIED SOLUTION
Avatar of Glen Knight
Glen Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kam_uk

ASKER

Thanks Demazter..

I did read this article here: http://technet.microsoft.com/en-us/library/aa995948(EXCHG.80).aspx

"Use the Remove-Mailbox cmdlet to delete the user account that is associated with a particular mailbox from the Active Directory directory service and to process the associated, disconnected mailbox as directed by the specified parameters"

So I wasn't sure?
That's remOve-mailbox.

I am talking about disable-mailbox

They are very different ;)
Avatar of kam_uk

ASKER

Sure, but you're saying that I need to run remove-mailbox to delete the disconnected mailboxes? Maybe I'm misunderstanding :)

How can I remove the disconnected mailbox?
Yes you do but the mailbox will be disconnected which means it will not have an associated AD account to delete.
Avatar of kam_uk

ASKER

Ah ok :)

Could you confirm my steps:

1. Make a note of the mailbox GUID
2. Disable mailbox in EMC
3. Run this command:

Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid>

That will remove that disconnected mailbox only?
correct ;)