Home » Microsoft » 70-640 » Which cmdlet should you use?
Your network contains an Active Directory domain named contoso.com.
The Administrator deletes an OU named OU1 accidentally.
You need to restore OU1.
Which cmdlet should you use?
A. Get-ADObject cmdlet.
B. Get-ADOrganizationalUnit cmdlet.
C. Get-ADUser cmdlet.
D. Get-ADGroup cmdlet.
Correct Answer: A
Explanation/Reference:
Reference:
http://technet.microsoft.com/en-us/library/dd379509.aspx
Restoring a deleted Active Directory object using the Get-ADObject and Restore-ADObject cmdlets You can also restore a deleted Active Directory object by using the Get-ADObject and Restore-ADObject Active Directory module for Windows PowerShell cmdlets. The recommended approach is to use the Get- ADObject cmdlet to retrieve the deleted object and then pass that object through the pipeline to the Restore-ADObject cmdlet.