Export (0) Print
Expand All

Restoring a Deleted Group

Updated: February 28, 2009

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to restore a deleted group.

The following example demonstrates how to restore the deleted group RODCAdmins in the Fabrikam.com domain. For group membership to be preserved after you restore a deleted group, you must enable the Active Directory Recycle Bin feature in the forest.

Restore-ADObject -Identity "CN=RODCAdmins\\0ADEL:613dc90a-2afd-49fb-8bd8-eac48c6ab59f,CN=Deleted Objects,DC=FABRIKAM,DC=COM" -TargetPath "OU=ManagedGroups,DC=FABRIKAM,DC=COM"

For a full explanation of the parameters that you can pass to Restore-ADObject, at the Active Directory module command prompt, type Get-Help Restore-ADObject –detailed, and then press ENTER.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft