Harun's Microsoft Blog

Archive for September, 2010

How To Enable Active Directory RecycleBin

by on Sep.23, 2010, under Active Directory

After raising the Forest and the Domain level to Windows Server 2008 R2 it is possible to enable the AD recycleBin which Enables u to Recover deleted objects , this comes very handy when objects are deleted by an accident and you have to recover those very fast to keep the bussiness rolling.
Following  the steps below to enable ur recyclebin.s
Start powershell as Administrator by right clicking on the Powershell Icon and write the command marked in RED below

PS C:\Windows\system32> Import-Module activedirectory

Next Command is the following code marked in RED, please dont forget to change yourdomain.com with the FQDN of yours

PS C:\Windows\system32> Enable-ADOptionalFeature -Identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration, DC=yourdomain,DC=com‘ -Scope ForestOrConfigurationSet -Target ‘YourDomain.com

 

You will see the following message

WARNING:

 Enabling ‘Recycle Bin Feature’ on ‘CN=Partitions,CN=Configuration,DC=yourdomain,DC=com’ is an irreversible action!You will not be able to disable ‘Recycle Bin Feature’ on ‘CN=Partitions,CN=Configuration,DC=yourdomain,DC=com’ if youproceed. 

Confirm

Are you sure you want to perform this action?

Performing operation “Enable” on Target “Recycle Bin Feature”.

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “Y”):

Type Y and press Enter

Thats it folks, ur Recyclebin is enabled

Comments Off on How To Enable Active Directory RecycleBin more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...