Solved

Delete Active Directory accounts permanently

Posted on 2013-05-12
4
3,450 Views
Last Modified: 2013-05-13
I deleted some AD accounts from my domain controller and so it will go to AD recycle bin so that can restore from it. but i want to delete these ad accounts permanently from AD. AD recycle bin can only accessed through powershell in windows server 2008 r2. pls help
0
Comment
Question by:vipinvgopal
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 250 total points
Comment Utility
to remove AD accounts from recycle bin use the following:
Get-ADObject -filter {isdeleted -eq $true -and name -ne “Deleted Objects”} -includeDeletedObjects -property * | Remove-ADObject

Open in new window

0
 

Author Comment

by:vipinvgopal
Comment Utility
actually i did not enabled AD recycle bin in Domain controller. So the deleted objects will stored in "DeletedObject" container. I confused this deletedobject container with AD recycle bin. Actually i want to empy this deletedobject container.
0
 
LVL 11

Assisted Solution

by:Venugopal N
Venugopal N earned 250 total points
Comment Utility
If the recycle Bin not activated, then the object will be avaiable on the tombstone object and it will be maintained for the next 180days.Let me know the reason why you need to remove the object permanently, because as best practice the deleted object need to be removed after the tombstone period.refer the link for more information...

http://www.petri.co.il/recovering-deleted-items-active-directory.htm
0
 

Author Comment

by:vipinvgopal
Comment Utility
sorry i can not say why i need to remove :) . is it possible to remove from tombstone object permanently?
0

Featured Post

Want to promote your upcoming event?

Is your company attending an event or exhibiting at a trade show soon? Are you speaking at a conference? Spread the word by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now