- Click Start, click Administrative Tools, right-click Active Directory Module for Windows PowerShell, and then click Run as administrator.
- At the
Active Directory module for Windows PowerShell
command prompt, type the following command, and then press ENTER:Get-ADObject -Filter {String} -IncludeDeletedObjects | Restore-ADObject
For example, if you want to restore an accidentally deleted user object with the display name Mary, type the following command, and then press ENTER:
Get-ADObject -Filter {displayName -eq "Mary"} -IncludeDeletedObjects | Restore-ADObject
0 Comments.