Your network contains an active directory domain named contoso.com. The domain contains a
domain controller named DCS. DCS has a server core installation of windows server 2012. You need
to uninstall Active Directory from DCS manually. Which tool should you use?
A.
The Remove-WindowsFeature cmdlet
B.
the ntdsutil.exe command
C.
the dsamain.exe command
D.
the Remove-ADComputer cmdlet
I found A, B or D 😉
Im not sure, but i go with A – Uninstall-WindowsFeature cmdlet –
https://technet.microsoft.com/en-us/library/jj574158.aspx
The command is now Uninstall-WindowsFeature, it replaced the Remove-WindowsFeature cmdlet, which was used in Windows Server 2008 R2.
https://technet.microsoft.com/en-us/library/jj205471(v=wps.630).aspx
https://technet.microsoft.com/en-us/library/jj574104.aspx#BKMK_PS
https://technet.microsoft.com/en-us/library/cc771844%28v=ws.10%29.aspx#BKMK_remove_domain_interface
Remove-WindowsFeature cmdlet – removes an Active Directory computer
https://technet.microsoft.com/en-us/library/ee617250.aspx
https://technet.microsoft.com/en-us/library/hh852313%28v=wps.630%29.aspx
I found A, B or D
Im not sure, but i go with A – Uninstall-WindowsFeature cmdlet –
https://technet.microsoft.com/en-us/library/jj574158.aspx
The command is now Uninstall-WindowsFeature, it replaced the Remove-WindowsFeature cmdlet, which was used in Windows Server 2008 R2.
https://technet.microsoft.com/en-us/library/jj205471(v=wps.630).aspx
https://technet.microsoft.com/en-us/library/jj574104.aspx#BKMK_PS
https://technet.microsoft.com/en-us/library/cc771844%28v=ws.10%29.aspx#BKMK_remove_domain_interface
Remove-WindowsFeature cmdlet – removes an Active Directory computer
https://technet.microsoft.com/en-us/library/ee617250.aspx
https://technet.microsoft.com/en-us/library/hh852313%28v=wps.630%29.aspx
That’s why A is wrong. They give the answer “Remove-WindowsFeature cmdlet” which is not valid for Windows Server 2012 as stated in the question.
There’s a similar question that lists dcpromo as an answer which is also wrong because dcpromo was removed in 2012 as well.
The best way in the real world would be “Uninstall-ADDSDomainController” and “Uninstall-WindowsFeature”
You’re wrong as well.
Remove-WindowsFeature is an alias for Uninstall-WindowsFeature.
Same as Q216 – answer is B “manually”
I copy here my previous answer from Q216:
I think the answer is A, even if Remove-WindowsFeature is a 2008 cmdlet it still working because is not deprecated.
To complete uninstall for Active Directory we should use the following 2 commands:
Uninstall-addsdomaincontroller
Uninstall-windowsfeature
https://technet.microsoft.com/en-us/library/jj574104.aspx
Ntdsutil.exe is a command-line tool that provides management facilities for Active Directory Domain Services (AD DS) and Active Directory Lightweight Directory Services (AD LDS). You can use the ntdsutil commands to perform database maintenance of AD DS, manage and control single master operations, and remove metadata left behind by domain controllers that were removed from the network without being properly uninstalled. This tool is intended for use by experienced administrators.
the question is how to remove a DC “manually”, not using the regular uninstall commands.
“B”, using Ntdsutil.exe is the correct answer
Windows Server 2003 Service Pack 1 (SP1) or later service packs – Enhanced version of Ntdsutil.exe
https://support.microsoft.com/en-us/kb/216498
The version of Ntdsutil.exe that is included with Service Pack 1 or later service packs for Windows Server 2003 has been enhanced to make the metadata cleanup process complete. The Ntdsutil.exe version that is included with SP1 or later service packs does the following when metadata cleanup is run:
Removes the NTDSA or NTDS Setting subject.
Removes inbound AD connection objects that existing destination DCs use to replicate from the source DC being deleted .
Removes the computer account .
Removes FRS member object.
Removes FRS subscriber objects.
Tries to seize flexible single operations master roles (also known as flexible single master operations or FSMO) held by the DC that are being removed .