Which tool should you use?

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?

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



Leave a Reply 16

Your email address will not be published. Required fields are marked *

5 × 4 =


tom

tom

Can anyone explain how this is?
The explanation in the answer is throwing me off.

The Remove-ADComputercmdlet removes an Active Directory computer.
Example: Remove-ADComputer -Identity “FABRIKAM-SRV4”
Remove one particular computer.

This to me says that it removes an AD computer. The question asks to uninstall Active Directory from DC5 manually.

Removing the computer won’t uninstall the role?
(I understand that remove-windowsfeature is w2k8, and has been replaced with uninstall-windowsfeature)

ian

ian

ANSER IS B

chaserZX

chaserZX

You have to remove it from ad first

chaserZX

chaserZX

This question is weird. In order to remove adds from domain controller it must be demoted first. Then you can remove adds. None of the answers cover this

CuriousBob

CuriousBob

-server
Specifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server. The service may be any of the following: Active Directory Lightweight Domain Services, Active Directory Domain Services or Active Directory Snapshot instance.

https://technet.microsoft.com/en-us/%5Clibrary/hh852313(v=wps.630).aspx

CuriousBob

CuriousBob

sorry… “C”

Nelson

Nelson

I think the answer is D even if Remove-WindowsFeature is a 2008 cmdlet but it’s 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

Rif

Rif

PS C:\Users\Administrator> help Remove-WindowsFeature

NAME
Uninstall-WindowsFeature

SYNTAX
Uninstall-WindowsFeature [-Name] [-Restart] [-IncludeManagementTools] [-Remove] [-ComputerName
] [-Credential ] [-LogPath ] [-WhatIf] [-Confirm] []

Uninstall-WindowsFeature [-Name] [-Vhd ] [-IncludeManagementTools] [-Remove] [-ComputerName
] [-Credential ] [-LogPath ] [-WhatIf] [-Confirm] []

ALIASES
Remove-WindowsFeature

REMARKS
Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
— To download and install Help files for the module that includes this cmdlet, use Update-Help.

Giancarlo

Giancarlo

In WIN SERVER 2012
‘Remove-WindowsFeature’ is an alias of ‘Uninstall-WindowsFeature’
It’s D

billkom

billkom

c can be correct

Key: You need to uninstall Active Directory from DC5 manually

My assumption would be that the server that hosts the Domain Controller role has failed and netiher of the following commands can be run as the server does exits, it failed
Uninstall-addsdomaincontroller
Uninstall-windowsfeature

So regardless of the method used to clean the failed DC from AD (likely NTDSUTIL), the last step would be to remove the computer account from AD

IT Man

IT Man

IT’S DEFINITELY A
I tested in my lab.
when you use remove windows feature cmdlet in W2012, it automatically switches to uninstall-windowsfeature and starts uninstalling without any problem.(it just shows a note that it states “cmdlet uninstall-windowsfeature at command pipline postion 1” which you specify the the role that you want to unistall

Angel

Angel

Misma pregunta y 2 diferentes respuestas en los exámenes de entrenamiento.

Puede ser ntdsutil y también remove-adcomputer.