How To Restore Active Directory Users And OU In Windows 2008
Description:
Active directory is a user infrastructure managing by the server.User Permission and programs other features are allocated from the active directory.In some cases user deleted or OU will crash.To recover user settings and recovering OU here is the article.
Steps:
– Before start the process deleted accounts are the members of Domain Admins Group( Basic permission).
– Restore objects can be take place in two ways that are the from system state backup recovery or from power shell.
– Open the windows PowerShell.
– Follow the below commands to restore user,
C:\>Import -Module ActiveDirectory
C:\>Get -Adobject -Filter {displayname -eq “username”} IncludeDeletedObjects | Restore -ADObject (For User Restore)
– To Restore OU in Active Directory follow the below commands
C:\>Get -ADObject _Filter {isDeleted -eq $true -and name -ne “Deleted Objects”} -IncludeDeletedObjects -property * | ft msds -LastKnownRdn,LastKnown Parent -Auto -wrap ( For recover last deleted objects)
C:\>Get -ADObject _Filter {msds -LastknownRdn -eq “OU NAME”} -IncludeDeletedObjects| Restore -ADObject
Tags:Active Directory,OU,OU Recovery,Active directory recovery,windows,Windows 2012,Powershell,shell script,windows powershell script,tech news,Tech article,Knowledge Article
Add Comment