Finding and listing deleted objects
Once Active Directory Recycle Bin is enabled in a managed domain, Active Roles provides access to the Deleted Objects container that holds the deleted objects from that domain. In the Active Roles Console tree, the container appears at the same level as the domain itself, under the Active Directory node. If multiple managed domains have Active Directory Recycle Bin enabled, then a separate container is displayed for each domain. To tell one container from another, the name of the container includes the domain name (for example, MyDomain.MyCompany.com - Deleted Objects).
Search pages in the Active Roles Console facilitate finding deleted objects, enabling the use of very specific queries based on any object properties. It is also possible to examine and search a list of deleted objects that were in a particular Organizational Unit or Managed Unit at the time of deletion.
Searching the Deleted Objects container
The Active Roles Console offers the Deleted Objects search category in the Find dialog, which is intended to perform a search in the Deleted Objects container of any managed domain where Active Directory Recycle Bin is enabled.
To search the Deleted Objects container
-
In the Console tree, right-click the Active Directory and click Find.
-
In the Find list, click Deleted Objects.
-
Do any of the following:
-
In Name or Description, type the name or description, or part of the name or description, of the object to find.
When searching by name, Active Roles uses ambiguous name resolution (ANR) to find objects with not only name but also some other properties matching the string you type in the Name box. The properties used for ANR include name, first name, last name, display name, and logon name.
-
Click the button next to the Deleted from box and select the object that was the parent of the deleted object you want to find.
By using the Deleted from search option you can find child objects that were deleted from a particular container object.
-
Use the Advanced tab to build a query based on other properties of the deleted object to find. For instructions, see Using advanced search options and Building a custom search in the Active Roles Console User Guide.
-
Click Find Now to start the search.
When the search completes, the Find dialog displays a list of deleted objects that match the search criteria.
If you double-click an object in the list of search results, the property pages for that object are displayed. If you right-click an object, the shortcut menu displays all the actions you can perform on that object.
Searching for objects deleted from a certain OU or MU
To view and search a list of objects that were deleted from a particular Organizational Unit (OU) or Managed Unit (MU), you can use the View or Restore Deleted Objects command. The command opens a dialog box that lists the deleted objects that were direct children of the corresponding OU or MU at the time of deletion. The View or Restore Deleted Objects dialog can be used to search for deleted objects whose name matches a specific search string. It provides flexible matching by using support for ambiguous name resolution (ANR).
To search for objects deleted from a particular OU or MU
-
Right-click the OU or MU and click View or Restore Deleted Objects.
-
In Look for, type the search string that you want to use.
-
Click Find Now to start the search.
When the search completes, the list in the dialog box is limited to the deleted objects whose name, first name, last name, display name, logon name, or any other property used for ANR begins with the specified search string. To clear the search results and display all the deleted objects, click Clear Search.
NOTE: The View or Restore Deleted Objects command is also available on domain and container objects, which allows you to find deleted objects that were direct children of a particular domain or container at the time of deletion.
Restoring a deleted object
For restoring deleted objects you can use the Restore command that is available from:
-
The View or Restore Deleted Objects dialog.
-
A list of search results prepared using the Deleted Objects search category in the Find dialog.
-
A list of objects held in the Deleted Objects container, which is displayed in the details pane when you select the Deleted Objects container in the Console tree.
In the Active Roles Console the command can be found on the shortcut menu, which appears when you right-click a deleted object.
To restore a deleted object
-
In the View or Restore Deleted Objects dialog, click the deleted object and then click Restore.
OR
In a list of search results prepared using the Deleted Objects search category, or in a list of objects held in the Deleted Objects container, right-click the deleted object and click Restore.
-
Review and, if necessary, change the settings in the Restore Object dialog, and then click OK to start the restore process.
The Restore Object dialog prompts you to choose whether deleted child objects (descendants) of the deleted object should also be restored. The Restore child objects check box is selected by default, which ensures that the Restore command applied on a deleted container object restores the entire contents of the container.
To clarify, consider an example in which an administrator accidentally deletes an Organizational Unit (OU) called Sales_Department that contains a number of user accounts for sales persons along with another OU called Admins that, in turn, contains a user account for an administrative assistant. When applying the Restore command on the Sales_Department OU, with the option to restore child objects, Active Roles performs the following sequence of steps:
-
Restore the Sales_Department OU.
-
Restore all the deleted user accounts that were direct children of the Sales_Department OU.
-
Restore the Admins OU in the Sales_Department OU.
-
Restore all the deleted user accounts that were direct children of the Admins OU.
If you clear the Restore child objects check box, Active Roles performs only the first step, so the restored Sales_Department OU is empty.
IMPORTANT: When restoring a deleted object, ensure that its parent object is not deleted. You can identify the parent object by viewing properties of the deleted object: the canonical name of the parent object, preceded by the deleted from: label, is displayed beneath the name of the deleted object on the General tab in the Properties dialog. If the parent object is deleted, you need to restore it prior to restoring its children because deleted objects must be restored to a live parent.