25
February
2010

Restore deleted objects in Active Directory

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 '

ad recbin 300x148

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

ad recbin2 300x148

No Comments »

RSS - comments on this post. TrackBack URL


Add Comment

Kamil Skalski Photo
Microsoft Certified Trainer

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com