Thursday, December 6, 2012

Active Directory Recycle Bin (Part 3)

 In Continuation to my Part 2 post where i discussed about How to Restore Deleted User Account From Recycle Bin, now we will discuss the post on How to Restore Deleted OU.

Procedure to Restore Deleted OU:

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





No comments:

Post a Comment

Azure Policy support for remediating tags for existing resources

Use Azure policy to remediate tags for existing resources. https://azure.microsoft.com/en-us/updates/azure-provides-at-scale-tags-managem...