PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.
Set-ADObject cmdlet.

B.
Set-ADOrganizationalUnit cmdlet.

C.
Set-ADUser cmdlet.

D.
Set-ADGroup cmdlet.

Explanation:
I suspect that “Set-ADObject cmdlet” is a typo, because the Set-ADObjectcmdlet modifies the properties of an
Active Directory object. It think it should say Get-ADObject.
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-ADObjectand Restore-ADObject
Active Directory module for Windows PowerShell cmdlets. The recommended approach is to use the Get-ADObjectcmdlet to retrieve the deleted object and then pass that object through the pipeline to the Restore-ADObject cmdlet.


Leave a Reply