02 October 2014

Restore active directory object

it only works if:

  • forest functional level is 2008 R2 (only if all domain controllers are running Windows 2008 R2)
  • Active Directory Recycle Bin was enabled before the object was deleted.


Get-ADObject -Filter {samaccountname -like '*marius*'} -IncludeDeletedObjects -Server adc | Restore-ADObject -PassThru

No comments:

Post a Comment