Active Directory Recycle Bin

Active Directory Recycle Bin

Active Directory Recycle bin this is the one of most important feature of the Windwos 2008 R2 Active Directory domain enviorement.
With previous domain controllers (Windows 2003, Windows 2008) it was very difficult to restore deleted items. We could use ldp.exe or we have to restart the server in directory service restore mode for restore backups. At last we can use some third party tools like Adrestore.net .
Get the benifit of the Active Directory recycle bin we should raise the forest functional level to the windows 2008 R2.

 Enable and restore Active Directory objects in Windows 2008 R2 domain.

We1

Enable-ADOptionalFeature ‘Recycle Bin Feature’ –Scope ForestORConfigurationSet –Target ‘mydomain.lk’

Note:-
Once you enable this feature it cannot be disabled and there can be 10 to 15% increase in the size of NTDS.DIT.

This PowerShell cmdlet will enable AD recycle bin for you

2

3

Now I AM deleting user account “BranchAdmin”. This user is also member of a Administrators group.

4

Get-ADObject –IncludeDeletedObjects –Filter{name –like “Branch*”}

Using this Get-ADObject we can see what are the deleted accounts with account name like “branch*”

5

Now we can see all the deleted users in Active Directory.

6

Restore-ADObject –Identity 8923423423423424

Using Restore-ADObject we can restore deleted users, but we need to provide those users GUID to the Restore-ADObject as a Identity Parameter

7BranchAdmin

Branch admin user has been restored with relevant group memberships.

Leave a Comment
  • Please add 5 and 3 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Richard Mueller edited Revision 3. Comment: Minor edits and typos, add tag

  • Richard Mueller edited Revision 2. Comment: Removed (en-US) from title, added tag

  • Richard Mueller edited Original. Comment: Correct the title, add tags

Page 1 of 1 (3 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Richard Mueller edited Original. Comment: Correct the title, add tags

  • Richard Mueller edited Revision 2. Comment: Removed (en-US) from title, added tag

  • Richard Mueller edited Revision 3. Comment: Minor edits and typos, add tag

Page 1 of 1 (3 items)