IT tutorials
 
Technology
 

Windows Server 2008 R2 : What is New in Active Directory (part 1) - Active Directory Recycle Bin

2/27/2014 3:42:05 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

AD was first introduced with the release of Windows 2000 Server. Most of the core functionalities have remained the same through Windows Server 2003, Windows Server 2008, and now Windows Server 2008 R2. However, with each release, Microsoft has made some performance improvements and added new features. In this section, we will take a look at some of the new AD features in Windows Server 2008 R2.

1. Active Directory Recycle Bin

AD now includes an undelete option known as the Recycle Bin. The AD Recycle Bin acts a lot like the Windows recycle bin we are all very familiar with. The AD Recycle Bin stores objects for 180 days (by default) after they are deleted from AD. This allows for easy full fidelity recovery of deleted AD objects using PowerShell commands. The one main requirement to use this feature is that your AD forest is in Windows Server 2008 R2 native mode, and all domain controllers (DCs) in the domain need to be running Windows Server 2008 R2. Let us take a closer look at the AD Recycle Bin.

Best Practices

Never test new features in production

Never try out new features in a production environment. You should always test them in a lab environment and fully understand them before using them in your production environment. Just because a new feature exists, it does not mean it should or can be used in your specific deployment. Do your homework and try it out in a lab first.


1.
First verify that the AD forest is in Windows Server 2008 R2 Native mode. You can verify this by opening Active Directory Domains and Trusts from Start | Administrative Tools.

2.
To verify the forest functional level, right-click the root node in the management console and choose the option Raise Forest Functional Level (see Figure 1).

Figure 1. Raise Forest Functional Level.


3.
The Raise Forest Functional Level window will pop up. The window will display the current forest functional level as seen in Figure 2. If the forest is not in Windows Server 2008 R2 native mode, it will need to be raised prior to attempting to use the AD Recycle Bin.

Figure 2. Current forest functional level.


4.
After verifying that your forest is in Windows Server 2008 R2 native mode, you will need to enable the recycle bin. This is done by running a PowerShell cmdlet.

5.
AD PowerShell can be accessed from Start | Administrative Tools | Active Directory Module for PowerShell.

6.
Enter the following command to enable the recycle bin (see Figure 3): enable-adoptionalfeature "Recycle Bin Feature" –Scope ForestorConfigurationSet –Target contoso.com

Figure 3. Enable Active Directory Recycle Bin.

7.
When prompted, choose [Y] Yes to enable the recycle bin on the Target.

8.
Now that the recycle bin is enabled, we will test the recycle bin by deleting an organizational unit (OU) named My User OU. To do this, open Active Directory Users and Computers (ADUC). Create a new OU named My User OU. When creating the OU, be sure to uncheck the box saying Protect Container from Accidental Deletion.

9.
After creating the OU, delete it by right-clicking on the My User OU and choosing Delete. Click Yes to verify you do indeed want to delete this object (see Figure 4).

Figure 4. Deleting an Active Directory OU.

10.
Now that we have deleted the OU, let us restore it from the AD Recycle Bin. Return to PowerShell with AD cmdlets loaded.

11.
At the PowerShell, promptly enter the command: Get–ADObject –SearchBase "CN=Deleted Objects,DC=test,DC=local" –ldapFilter "(objectClass=*)" –includeDeletedObjects.

12.
This will list the contents of the recycle bin. Notice the ObjectGUID on each of the objects (see Figure 5). You will want to note the GUID of the object you want to restore. In our example, we will restore the My User OU with an objectGUID of de167a00–2457–4fb0–9ccc-465a3523332f2.

Figure 5. Deleted Active Directory Objects.

13.
To restore the object, enter the command Restore–ADObject –identity de167a00–2457–4fb0–9ccc–465a3523332f2 (see Figure 6).

Figure 6. Restore Active Directory Object.

14.
You can refresh your view of ADUC, and the My User OU will instantly reappear.

We used a simple example of how you can quickly recover a deleted object. It is important to understand that this tool could be used to easily restore accidental deletion of not only simple OUs but also entire OU structures that could contain thousands of users, groups, or computers.

 
Others
 
- Sharepoint 2010 : Building a .NET Connectivity Assembly (part 5) - Define Entity Metadata
- Sharepoint 2010 : Building a .NET Connectivity Assembly (part 4) - Create a Custom Entity Object
- Sharepoint 2010 : Building a .NET Connectivity Assembly (part 3) - Define a Method to Support the SpecificFinder Stereotype
- Sharepoint 2010 : Building a .NET Connectivity Assembly (part 2) - Create a Custom Entity Service Object, Define a Method to Support the Finder Stereotype
- Sharepoint 2010 : Building a .NET Connectivity Assembly (part 1) - Business Data Connectivity Model Project
- Windows 8 : Configuring security - Managing Windows Firewall and exceptions (part 5) - Configuring outbound rules, Configuring connection security rules
- Windows 8 : Configuring security - Managing Windows Firewall and exceptions (part 4) - Allowing the secure connection
- Windows 8 : Configuring security - Managing Windows Firewall and exceptions (part 3) - Configuring IPsec settings
- Windows 8 : Configuring security - Managing Windows Firewall and exceptions (part 2) - Modifying a firewall profile
- Windows 8 : Configuring security - Managing Windows Firewall and exceptions (part 1) - Choosing Windows Firewall
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us