• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

Ad user remove ?

I deleted a user from AD instead of Exchange now can't delete the account in exchange. It gives some error about not being able to find it in AD. How can I remove this mail box now?
0
Axis52401
Asked:
Axis52401
1 Solution
 
Satish AutiSenior System AdministratorCommented:
Run this command from EMC

Remove-Mailbox -Identity "USERNAME" -Permanent

Refer for better understanding...

http://howexchangeworks.com/2010/09/purge-disconnected-or-soft-deleted.html
0
 
Axis52401Security AnalystAuthor Commented:
It gives me the error
Missing an arguement for parameter
0
 
SmightyCommented:
You will find the Mailbox as unlinked in the Disconnected Mailboxes and you'll be able to reattach the mailbox to a new/other user or delete it there.

If you have the AD Recycle Bin activated you can restore the AD account and reattach the mailbox to the existing account. I don't know if you have to reattach it manually since I've never done it myself...
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.

 
Satish AutiSenior System AdministratorCommented:
have u enter the user account between "" which u deleted.
0
 
Satish AutiSenior System AdministratorCommented:
I don't think there is need to restore user account..... finally u can try that also..
0
 
Axis52401Security AnalystAuthor Commented:
That mailbox doesn't show in the disconnected mailboxes it shows up in the regular list, I did put the users username in the command
0
 
MaheshArchitectCommented:
You can use adrestore if you wanted to recover deleted user
OR
else you can create new AD user without mailbox with same login name as deleted one.
Also, run below command on exchange mailbox server
get-mailboxdatabase |clean-mailboxdatabase
Now you can view deleted user mailbox in disconnected mailbox post refresh
Now right click disconnected mailbox and select connect, it will connect the disconnected mailbox to user
now take .pst backup of mailbox if wanted to and then Disable (Not Remove) the mailbox from exchange mmc.
This will remove all exchnage attributes from user account, and also mark mailbox for deletion by moving it into disconnected mailbox container.
If everything happended perfectly and u are sure that user account is no longer needed, you can delete it as well.

below is the step by step
http://community.spiceworks.com/how_to/show/1388-recover-mailbox-after-delete-active-directory-user
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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