Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Tuesday, January 26, 2010

How to turn on Active Directory Recycle Bin in 2008 R2

A new feature of Active Directory in Server 2008 R2 is the Recycle Bin. The Recycle bin allow you to recover objects that have been deleted. Unlike an Authorative restore, the properties of the object are also restored. The recycle bin is not turned on by default. Once on, it cannot be turned off. To turn it on:

1. Click Start, click Administrative Tools, right-click Active Directory Module for Windows PowerShell, and then click Run as administrator.

2. At the Active Directory module for Windows PowerShell command prompt, type the following command, and then press ENTER:

For this example, my domain is MCTNet.com.

Enable-ADOptionalFeature –Identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=MCTNet,DC=COM’ –Scope ForestOrConfigurationSet –Target ‘MCTNet.com’

This process does not put a nice recycle bin for you to use. Next Tuesday's blog will provide a PowerShell Script to help out.

Reference: http://technet.microsoft.com/en-us/library/dd379481(WS.10).aspx

No comments: