The time has come to describe several new features of Windows Server 2008 R2. Today is the first one basket in the directory service is Active Directory AD Recycled Bin. Its task is to simplify restore deleted objects that have been performed by modifying the attribute isDeleted or backup.
The first step is to incorporate the AD Recycle Bin by running (for example skalski.info domain):
Enable-ADOptionalFeature-Identity 'CN = Feature Recycle Bin, CN = Optional Features, CN = Directory Service, CN = Windows NT, CN = Services, CN = Configuration, DC = Skalski, DC = info' ForestOrConfigurationSet-Scope-Target 'Skalski . info '
Further work with a basket to find the deleted object and the command to restore it:
Get-ADObject-Filter (displayName-eq "Kamil Skalski")-IncludeDeletedObjects | Restore-ADObject










