Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 693
  • Last Modified:

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.
0
kam_uk
Asked:
kam_uk
  • 6
  • 4
1 Solution
 
Glen KnightCommented:
In EMC you need to select disable, this will remove exchange attributes but the user accnt will not be effected
0
 
Glen KnightCommented:
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
0
 
kam_ukAuthor Commented:
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?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Glen KnightCommented:
That's the way to do it, you then delete it from disconnected mailboxes.

See here for how: http://khurramullah.blogspot.com/2008/11/removing-disconnected-mailboxes-in.html

There isn't any other way to do it.
0
 
kam_ukAuthor Commented:
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?
0
 
Glen KnightCommented:
That's remOve-mailbox.

I am talking about disable-mailbox

They are very different ;)
0
 
kam_ukAuthor Commented:
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?
0
 
Glen KnightCommented:
Yes you do but the mailbox will be disconnected which means it will not have an associated AD account to delete.
0
 
kam_ukAuthor Commented:
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?
0
 
Glen KnightCommented:
correct ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now