Exch2010 remove mailbox without deleting windows AD user?

Jay_Ratansi
Jay_Ratansi used Ask the Experts™
on
In sbs2011/exchange2010 EMC, removing a mailbox requires deleting the AD user object.

we have a scenario where the windows user needs to stay as domain user eg. to use file share resources.

we could Remove in EMC and subsequently re-create as 'New Mail User' but this would break the original windows a/c?

How can we remove mailbox without deleting windows AD user?

thanks
Jay
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Solution Architect
Most Valuable Expert 2015
Top Expert 2015
Commented:
In the EMC you have 2 options "Remove" or "Disable". Remove disconnects the mailbox and deletes the Active Directory account as well. Disabling the Mailbox only disconnects the mailbox and keeps the AD Account in tact. So you want to Disable the Mailbox.

Will.
Kash2nd Line Engineer

Commented:
disable the mailbox in EMC
Will SzymkowskiSenior Solution Architect
Most Valuable Expert 2015
Top Expert 2015

Commented:
Kash is it really necessary to repeat what i said?

Will.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Kash2nd Line Engineer

Commented:
what is wrong with people on this forum. i have had this question open for a while and didn't see your comment in question.



OP >>>>> PLEASE AWARD POINTS TO WILL
Kamal KhaleefaInformation Security Specialist

Commented:
Is there anything you cant to accomplish!
Because disable or delete mailbox wont minimize the edb size will just disable the AD user
as experts "solution above"
Nick RhodeIT Director
Top Expert 2013

Commented:
As Will and Kash stated you can just Disable the mailbox and you will find that mailbox in the disconnected mailboxes space.  However if you plan on maybe connecting it back in at one point.  You might want to make sure you export a copy of the mailbox to PST of some kind.  Exchange I believe purges disconnected mailboxes by default after like 30 days.

If you go under the properties of the mailbox you should see a Limits Tab.  Check under deletion settings to view the timeframe of when it would be purged

Author

Commented:
Looking at two scenarios & their effect on the GAL global address list:

1. Disable the mailbox : at the next update (6am or perhaps a manual force update), the Outlook address book will no longer show the disabled users?

2. Disable the mailbox and subsequently add as new Mail User : this would be possible?  at the next update (6am or perhaps a manual force update), the Outlook address book will now show the disabled users as Mail Users?

The arrangement to disable & allow access to windows domain is temporary. Eventually these users -using their own vanity domain and office365 - will be removed from the on-prem server altogether.

Thanks all for your feedback! How about assistance with my other open question!

jay
Scott CSenior Engineer

Commented:
@King2002...Even deleting the AD account and mailbox won't reduce the size of the EDB.  The resulting whitespace would still be in there to be used when needed.

To actually reduce the size of the EDB, you'd have to do an offline defrag which isn't worth the time and effort.

Author

Commented:
Hi ScottCha,

This question is not about reducing the size of the EDB at all.  At this site, we're running Exchange2010 and the total EDB size is 90GB at most.

Thanks,
Jay
Nick RhodeIT Director
Top Expert 2013
Commented:
So you are trying to make sure the address does not show up in the address book?  Prior to disabling the mailbox under the 1st screen (General) in the properties you should see a little checkbox with (Hide address from GAL).  You can just check the box and then disable the mailbox so they don't get added to the GAL
Scott CSenior Engineer

Commented:
Hello Jay, I know.  I was addressing the statement made by king2002 which might lead someone to believe that this or even removing a mailbox can reduce DB size.

Will gave you the solution which is what I would have put, but he beat me to it.  :-)

However, I will add that this is how it can be done in the Exchange Shell:

Disable-Mailbox -Identity "John Doe"

Disable-Mailbox -Identity "John Doe" -RemoteArchive
Kamal KhaleefaInformation Security Specialist

Commented:
For address book you can make a filter using powershell to get users with certain creteria and enabled ad account
Scott CSenior Engineer

Commented:
@king2002....what question are you answering?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial