Your network contains an Active Directory domain named contoso.com. The domain contains a
domain controller named DC5. DC5 has a Server Core Installation of Windows Server 2012 R2.
You need to uninstall Active Directory from DC5 manually.
Which tool should you use?
A.
The dsamain.exe command
B.
The ntdsutil.exe command
C.
The Remove-ADComputercmdlet
D.
The Remove-WindowsFeaturecmdlet
Explanation:
The Remove-ADComputercmdlet removes an Active Directory computer.
Example: Remove-ADComputer -Identity “FABRIKAM-SRV4”
Remove one particular computer.http://technet.microsoft.com/en-us/library/ee662310.aspx
http://support.microsoft.com/kb/216498
http://technet.microsoft.com/en-us/library/ee617250.aspx
I am still going for D (of course it has to Uninstall-WindowsFeaturecmdlet) but hey… it it the first step to do.
The question does not imply that you need to remove the computer, but that you have to uninstall Active Directory. Thus, the right answer should be D
None of the answers actually achieve the goal of removing AD from a Domain Controller. You would want to run Uninstall-ADDSDomainController from PowerShell on DC5 to remove AD and demote the server. If you try to run uninstall-windowsfeature ad-domain-services without demoting the DC first, you will receive an error message.