In this example we have deleted “Test IT1” User account and we will be restoring the same.
Step1: Click Start, click Administrative Tools, right-click Active Directory Module for Windows PowerShell, and then click Run as administrator.
Step2: At the Active Directory module for Windows PowerShell command prompt, type the following command, and then press ENTER
Get-ADObject -ldapFilter:”(msDS-LastKnownRDN=ITING)” –IncludeDeletedObjects | Restore-ADObject
Step3: Refresh the Active Directory Users and Computers window.
“ITING” OU has been restored