Partager via


Restoring a Deleted Group

Applies To: Windows Server 2008 R2

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

Example

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"

Additional information

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.