In a previous entry, guest blogger Sean Kearney shared a new feature in Windows Server 2008 R2 directory services called the Active Directory Recycle Bin. Sean is back to show us how to recover those deleted objects.
-------------------------
So you’ve done it. We all have. Deleted a user, group, OU by accident but thankfully you have 2008 R2 in place and the AD Recycle Bin enabled. To recover now is a breeze! Start by launching Powershell V2 on Server 2008 R2 and run the following command
GET-ADOBJECT –filter {name –like “missingitem*”} –includedeletedobjects | RESTORE-ADOBJECT
That’s it. Nothing harder than that. Was that so hard? The great thing, is as long as it’s an object in Active Directory, it’s protected by this new feature for 180 days. Also, this just does restore the object. It’s restores the object, its security, its trusts!
If you’d like to learn more about the Active Directory Recycle Bin, Check out these great resources on Technet.com
Active Directory Recycle Bin - Instructional Video on Technet Edge