?
Solved

Delete Active Directory accounts permanently

Posted on 2013-05-12
4
Medium Priority
?
4,688 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 750 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 750 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
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 …
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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