How to: Recovering Deleted AD Objects in Windows Server 2008 R2

A new nice feature in Windows Server 2008 R2 is the Active Directory Recycle Bin. Deleted items can be restored without rebooting the Domain Controller(s), restarting the Active Directory Services and even without any backuptapes!! Let’s have a look on that.

The first step is to enable the Recycle Bin feature. Make sure your functional level is Windows Server 2008 R2 and keep in mind that when you enable this feature, you can’t disable this feature anymore!!

1.) Start the  Active Directory Module for Windows PowerShell
Import-Module ActiveDirectory

2.) View the actual settings of the Recycle Bin feature 
Get-ADOptionalFeature -Filter { name -like “Recycle*” }

3.) Enable the feature for your Active Directory environment 
Enable-ADOptionalFeature “Recycle Bin Feature” -Scope ForestOrConfigurationSet -Target E2K7SP2.LOCAL

4.) View all the deleted Active Directory objects 
Get-ADObject -SearchScope subtree -SearchBase “cn=Deleted Objects,dc=E2K7SP2,dc=LOCAL” -includeDeletedObjects -filter { name -notlike “Deleted*” }

5.) Restore the user objects you want 
Restore-ADObject -Identity “CN=User01\0ADEL:cc40dfd4-f671-4e90-90cc-3c8a33b18391,CN=Deleted Objects,DC=E2K7SP2,DC=LOCAL”
Restore-ADObject -Identity “CN=User02\0ADEL:394ec482-5bb2-4131-bdb4-7c92d7193987,CN=Deleted Objects,DC=E2K7SP2,DC=LOCAL”
Restore-ADObject -Identity “CN=User03\0ADEL:19f1bf8b-0227-486a-bc8d-ca72a342e116,CN=Deleted Objects,DC=E2K7SP2,DC=LOCAL”
Restore-ADObject -Identity “CN=User04\0ADEL:1b00b1c9-1f1f-4b74-b027-fa88feb4069d,CN=Deleted Objects,DC=E2K7SP2,DC=LOCAL”
Restore-ADObject -Identity “CN=User05\0ADEL:970b2597-4cf3-4971-87ea-9ada827e376d,CN=Deleted Objects,DC=E2K7SP2,DC=LOCAL”

6.) With this command you restore all the deleted items (Not Recommended!!)
Get-ADObject -SearchScope subtree -SearchBase “cn=Deleted Objects,dc=E2K7SP2,dc=LOCAL” -IncludeDeletedObjects -filter { name -notlike “Deleted*” } | Restore-ADObject

7.) All deleted Active Directory objects are restored now. Even the group membership of the users are restored!! Cool :D

AD_RCB_01

AD_RCB_02    AD_RCB_03    AD_RCB_04

AD_RCB_05    AD_RCB_06    AD_RCB_07

AD_RCB_08    AD_RCB_09    AD_RCB_10

AD_RCB_11    AD_RCB_12    AD_RCB_13

AD_RCB_14    AD_RCB_15

101 Responses to “How to: Recovering Deleted AD Objects in Windows Server 2008 R2”

  1. Buy Proxy says:

    Nice insight regarding proxies. Thanks! Would a proxy also be be worthwill for browsing the internet?

  2. Proxy says:

    Thanks for the knowledge on proxies. I’ve been researching proxies for some time now and can’t figure out which proxy is best for me to use. I included a hyperlink in my reference which gives an IP deal with to be entered in to surf anonymously. I can’t determine if this is what I need to unblock websites.

  3. i know this is not exactly on topic, but i have a blog using the blogengine platform as well and i’m having issues with my comments displaying. is there a setting i am forgetting? maybe you could help me out? thank you.

  4. I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.

  5. Kina Spara says:

    Simply just wished to mention I seriously respect your work on this blog site and the quality posts you make. These type of post are usually what keeps me going through the day. I discovered this post right after a excellent companion of mine recommended it to me. I do some blogging myself personally and I am always grateful to check out others adding quality info to the online community. I will certainly be following and now have book marked your website to my myspace account for others to check out.

  6. Sari Coric says:

    Bookmarked your site. Appreciation for sharing. Surely valued at time far from our research.

  7. opony says:

    Aw, this was a really quality post. In theory I’d like to write like this also – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get anything done… Regards

  8. opony says:

    This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It?s the old what goes around comes around routine.

  9. Thank you so much for this amazing, high quality information, this will help me & lots of others too!

  10. Well, I just want to let you know I like your site.

  11. Using an article directory is an excellent way to get more visitors to your website. Even though writing can be dull, article writing is worth the time in which you put into it.

  12. auto says:

    Incredible submit which has got me considering about the potential of this concept. Genuinely genuinely awesome.

  13. auto says:

    Awe-inspiring Info! I had been just assuming that there are plenty low potential important information in this particular thought however you truly re-structured my husband and my feelings. Thanks for an enjoyable idea.

  14. What’s up with that?It seems something interested.

  15. Usually I do not write-up on blogs, but I need to say that this article really forced me to perform so! Thanks, really nice article.

  16. Angila Breit says:

    This is getting a bit more subjective, but I much prefer the Zune Marketplace. The interface is colorful, has more flair, and some cool features like ‘Mixview’ that let you quickly see related albums, songs, or other users related to what you’re listening to. Clicking on one of those will center on that item, and another set of “neighbors” will come into view, allowing you to navigate around exploring by similar artists, songs, or users. Speaking of users, the Zune “Social” is also great fun, letting you find others with shared tastes and becoming friends with them. You then can listen to a playlist created based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will be relieved to know you can prevent the public from seeing your personal listening habits if you so choose.

  17. Thanks for this interesting information.

  18. There are amny books available online foe SEO purpose, you cannot say which one is best or not. It all depends on the person how he understands the concepts and theories. You can also go to other SEO books like "Road 2 SEO by Tony Tateossian". It is also a great book to learn.

  19. Between me and my husband we’ve owned more MP3 players over the years than I can count, including Sansas, iRivers, iPods (classic & touch), the Ibiza Rhapsody, etc. But, the last few years I’ve settled down to one line of players. Why? Because I was happy to discover how well-designed and fun to use the underappreciated (and widely mocked) Zunes are.

  20. Umm..the ones that don’t put to much on…some put loads on and it looks awful!! But you can wear a lot of make-up you just have to make it look nautral so then I wouldn’t look like you have to much on..that is what I try to do..hope this helps you! =)

  21. sansa clip says:

    i have a pink one and it great and the FM radio picks up really good i know most of them dont but this brand is a good brand so you shouldnt have nothing to worry about and limewire is the only thing i can think of hope i helped!!!!

  22. Get Syphon Filter because it is a really cool game, but if u don’t like shooting games then get Star Wars. I hav star wars for the 360 and my friend has it for psp. If u hav a 360 or ps3 then get star wars on that because the psp and the 360/ps3 versions are completely different and i think the 360/ps3 version is better because the psp version’s story is weird and the controls and graphics are awful.

  23. Barry Hobler says:

    Assuming the nuvi 260 works like my 200, you have to hit GO before it will calculate the route. Once the route is calculated, press on the green bar at the top of the map screen that gives you your turning instructions. You will then get a list of all the turns. There will be a Show Map option at the bottom that will let you see the whole route on the map. You can also press the readout in the corner of the screen that tells you the distance to your next turn. It will then show a zoomed in view of the turn along with the text instructions for the turn. You can page down to see each subsequent turn.

  24. I think your book sounds like a great idea. As for your dentures, I don’t have a clue, I’ve still got my own teeth. However, I’ve always found that elbow grease works wonders on most everything.

  25. DEWAYNE says:

    What is that plugin on your navbar called?

  26. Cayla Resler says:

    You should ask your pediatrician, but rice cereal is the most easily digested and to start with make it really thin like the breast milk. Bananas is the best fruit.

  27. Hey, I just desired to let you know, I really like the written substance on your web site. But I’m utilising Chromium on a machine running version 9.04 of Ubuntu and the look and experience aren’t very satisfying. Not a strong deal, I can still essentially go through the articles and search for info, but just desired to inform you about that. The navigation bar is kind of challenging to use using the config I’m running. Continue to keep up the superb operate!

  28. Can I link this post from my blog? Timothy

  29. First of all .. thank you for posting this video … scince im going to study medicine in zhengzhou university what type of advice you can give me about china and and the language coz we gonna take a compulsory coarses .

  30. You certainly know what you are referring to. Dude, this web site is simply excellent! I cant wait to look over more of what you have got to state. Im actually happy that I found it when I did because I had been truly starting to become bored to death with the total posting world. Youve changed my mind, man!

  31. my dog has the same problem here is what you can do go the any pet store like petsmart or a walmart may be better because it cheaper. in the dog section where the treats are they have omega 3 treats. its a orange bag and says omega 3 on them you cant miss them and try giving them to her she may like them better it will tell you on the back how many you should give her depending on her weight. my dog loves them and they do work good luck

  32. What is that plugin on your navbar called?

  33. Keep up the good work guys!

  34. It sounds like you might be generating difficulties yourself by seeking to solve this problem rather than seeking at why their is usually a difficulty inside 1st place. thanks !!! very really helpful post!

  35. Will Siner says:

    Discovered your weblog and decided to have a quick read, not what a normally do but good 1. Nice to see a website for a change that isn’t stuffed with spam and garbage, and truly makes some sense. In any case, awesome write up.

  36. Thanks, appreciate it.

  37. Super text, I will add this blog to my favorites.

  38. Great info, many thanks to the article writer. This is puzzling to me right now, but all around, the usefulness and significance is overpowering. Very much thanks once again and best of luck!

  39. There is also obviously a lot to know about this. I think you made some excellent points in Features also.

  40. Fine info, a lot of thanks to the creator. It is perplexing to me now, but in general, the efficacy and relevance is overpowering. Really much thanks again and also best of luck!

  41. Took me time to read all the remarks, but I really appreciated the post. It turned out to be Very valuable to me and I am certain to almost all the commenters here! It is always nice when you can not only be educated, but additionally amused! I’m sure you had fun writing this article.

  42. Valuable information provided I’m really delighted to see this particular write-up..thanks with regard to providing all of us wonderful material.Excellent walk-through. I truly appreciate this kind of write-up.

  43. I like your design and style, the inescapable fact that your site is a tad bit different tends to make it so useful, I get tired of discovering same-old-same-old just about all of the time. I’ve I simply just happened on this web page by you Thanks a lot.

  44. I see quite a number of sites which appear intriguing and really worth a read. There is absolutely nothing worse than searching through countless blah blah blogs simply to locate a few that keep your interest. Many thanks. Great work!

  45. Yeah! Great piece, continue to keep in place the awesome job. This is the kind of knowledge that should get acknowledgement for it’s craft. A lot more internet writers ought to learn from you. This is actually precisely on the money.

  46. Took me a moment to be able to read all the feedback, but I genuinely liked the post. It proved to be Quite valuable to me personally and I am confident to almost all the commenters here as well! It’s definitely nice when a person can not simply be enlightened, but also entertained! I’m sure you had fun creating this kind of article.

  47. Just happened upon your post and definitely will check out other ones. Looks like real good stuff.

  48. I like your blog. Really useful and very motivational. Thanks a ton. This will help me a lot.

  49. What theme are you utilizing here ? I really like the design. Thank you for this posting.

Leave a Reply