Solved

Delete Active Directory accounts permanently

Posted on 2013-05-12
4
4,448 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 250 total points
ID: 39160542
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
ID: 39160578
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
ID: 39160735
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
ID: 39160970
sorry i can not say why i need to remove :) . is it possible to remove from tombstone object permanently?
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

691 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