- 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
For more information about the Get-ADObject and Restore-ADObject cmdlets, at the
Active Directory module for Windows PowerShell
command prompt, type Get-Help Get-ADObject or Get-Help Restore-ADObject, and then press ENTER.
No comments:
Post a Comment