{"id":610,"date":"2015-05-18T14:58:08","date_gmt":"2015-05-18T14:58:08","guid":{"rendered":"http:\/\/zulfikar.co.uk\/blog\/?p=610"},"modified":"2015-05-18T14:58:08","modified_gmt":"2015-05-18T14:58:08","slug":"activate-the-ad-recycle-bin","status":"publish","type":"post","link":"https:\/\/zulfikar.co.uk\/blog\/activate-the-ad-recycle-bin\/","title":{"rendered":"Activate the AD Recycle Bin"},"content":{"rendered":"<p>You&#8217;ve finally got rid of those Windows Server 2003, you&#8217;re ready to upgrade your AD DS Functional Levels to either 2008 or 2012. Now you finally can and want to activate the recycle bin feature in AD (it wasn&#8217;t possible while you still had 2003 R2 DC&#8217;s running). The recycle bin feature is stored in the Configuration Partition of your Forest:<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #333399;\"> <strong>CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=domain,DC=tld<\/strong><\/span><\/p>\n<p>This is presumably a location for storing any new features to come. Ok, first it&#8217;s nice to check to see if the AD Recycle Bin is already enabled or not, type in:<\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">Get-ADOptionalFeature<\/span> <span style=\"color: #800000;\">-filter *<\/span><\/strong><\/p>\n<figure id=\"attachment_607\" aria-describedby=\"caption-attachment-607\" style=\"width: 837px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-607\" src=\"http:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_1.jpg\" alt=\"Return the AD Optional Features\" width=\"837\" height=\"173\" srcset=\"https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_1.jpg 837w, https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_1-300x62.jpg 300w, https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_1-705x146.jpg 705w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/a><figcaption id=\"caption-attachment-607\" class=\"wp-caption-text\">Get-ADOptionalFeature<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Note how there is nothing between the {} for &#8216;Enabled Scopes&#8217; &#8211; this means it is NOT enabled. IF it was you would have an entry in here just as it shows in the 2nd screenshot below. To enable it, is is simply this command:<\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">Enable-ADOptionalFeature<\/span> <span style=\"color: #800000;\">-Identity<\/span> &#8220;CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Services, CN=Windows NT,CN=Services,CN=Configuration,DC=domain,DC=tld<br \/>\n<\/strong><\/p>\n<figure id=\"attachment_608\" aria-describedby=\"caption-attachment-608\" style=\"width: 843px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-608\" src=\"http:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_2.jpg\" alt=\"Enable AD Recycle Bin\" width=\"843\" height=\"135\" srcset=\"https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_2.jpg 843w, https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_2-300x48.jpg 300w, https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_2-705x113.jpg 705w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/a><figcaption id=\"caption-attachment-608\" class=\"wp-caption-text\">Enable AD Recycle Bin<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Click Y to confirm and the change is made. Now check the Optional Features setting again, type in:<\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">Get-ADOptionalFeature<\/span><span style=\"color: #800000;\"> -filter *<\/span><\/strong><\/p>\n<figure id=\"attachment_609\" aria-describedby=\"caption-attachment-609\" style=\"width: 836px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-609\" src=\"http:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_3.jpg\" alt=\"AD Recycle Bin enabled\" width=\"836\" height=\"192\" srcset=\"https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_3.jpg 836w, https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_3-300x69.jpg 300w, https:\/\/zulfikar.co.uk\/blog\/wp-content\/uploads\/2015\/05\/Enabled_Scopes_3-705x162.jpg 705w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/a><figcaption id=\"caption-attachment-609\" class=\"wp-caption-text\">AD Recycle Bin enabled<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Test it out. Go on, you know you want to. Delete some objects &amp; recover them (not in Production of course, cause that would be plain silly!). See what attributes are recovered and report back if you wish.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;ve finally got rid of those Windows Server 2003, you&#8217;re ready to upgrade your AD DS Functional Levels to either 2008 or 2012. Now you finally can and want to activate the recycle bin feature in AD (it wasn&#8217;t possible while you still had 2003 R2 DC&#8217;s running). The recycle bin feature is stored in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[198,197,329,331,327,328,330,326,145],"class_list":["post-610","post","type-post","status-publish","format-standard","hentry","category-adc","tag-ad","tag-ad-ds","tag-configuration","tag-delete","tag-functional-level","tag-optional-feature","tag-partition","tag-recycle-bin","tag-restore"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p502c8-9Q","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/posts\/610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=610"}],"version-history":[{"count":1,"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/posts\/610\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/posts\/610\/revisions\/611"}],"wp:attachment":[{"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zulfikar.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}