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.References:
http://technet.microsoft.com/en-us/library/ee662310.aspx
http://support.microsoft.com/kb/216498
http://technet.microsoft.com/en-us/library/ee617250.aspx
The question states that you want to remove Active Directory. It does not state that you want to remove the computer. I think Remove-WindowsFeature cmdlet is correct.
0
0
BUt I think You cannot remove the Active directory until you demote the DC
so first you have to do he Remove-ADComputercmdlet and then remove the Active directory
0
0