PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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

20 Comments on “Which tool should you use?

    1. Jeff says:

      Via Ricky: “The Remove-WindowsFeature cmdlet has been replaced in Windows Server 2012 and forward by the Uninstall-WindowsFeature cmdlet”

      msdn.microsoft.com/en-us/library/ee662310.aspx




      0



      0
  1. BryanB says:

    I think this question has been mistyped.

    Letter ‘D’ should be Uninstall-WindowsFeature.

    If I am reading this correctly, the question states that you want to uninstall Active Directory from DC5 manually, NOT remove DC5 from AD.

    Uninstalling Active Directory would imply removing the Roll, not the entire computer from AD.

    The Uninstall-WindowsFeature removes the ROLL, and leaves the computer as a member of AD. Remove-ADComputercmdlet removes the computer from AD entirely.




    3



    0
  2. Sako Pako says:

    I disagree.. the question is “uninstall Active Directory from DC5 manually”.
    So Remove-ADComputercmdlet just removes DC5 from AD (its entry) but not unistall AD
    Remove-WindowsFeature is a valid PowerShell cmdlet that unistall AD from a server.

    The right answer is D.




    3



    0
  3. Merit Coba says:

    Draw your own conclusion :p
    A
    Exposes Active Directory data that is stored in a snapshot or backup as a Lightweight Directory Access Protocol (LDAP) server.

    B
    Ntdsutil.exe is a command-line tool for accessing and managing a Windows Active Directory database.

    C To remove a computer from ad.

    D is the first step in a two-step process used in demoting the ad controller:
    https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/deploy/demoting-domain-controllers-and-domains–level-200-




    1



    0
  4. Crusty Shabba says:

    Guess it all depends how you interpret the word ‘manually’ on the line ‘You need to uninstall Active Directory from DC5 manually’.

    ————–

    Why could it be D (The Remove-WindowsFeaturecmdlet)?

    Assume that the original question/answer just wasn’t dumped here correctly (or just not updated correctly when 2012R2 was released).

    We all know how Microsoft love their latest, greatest powershells, so on the real exam I doubt they’d still be asking 2012R2 candidates about the ‘deprecated-but-still-works-as-an-alias’ Remove-WindowsFeature cmdlet anymore.

    They’d be more likely to promote their 2012R2 ‘Uninstall-windowsfeature’ cmdlet instead.

    Either way, answer D is a solution – whether it meets their definition of a MANUAL uninstallation – I don’t know? This is the annoying part of Microsoft exams – you too often have to try and put yourself into the mind of whoever writes the test questions and guess exactly what they meant.

    ————–

    Why could it be B (The ntdsutil.exe command)?
    I guess if you assume ‘need to uninstall MANUALLY’ means that attempts at uninstalling AD from the server via usual, normal methods have gone bad – then yes you COULD emergency resort to a ntdsutil uninstall. But that would be a last resort, desperate measure as cleaning up all of the leftover metadata etc ain’t fun.

    Refer to here for an example – https://chinnychukwudozie.com/2014/01/27/using-ntdsutil-metada-cleanup-to-remove-a-failedoffline-domain-controller-object/

    But again, that word ‘MANUALLY’ makes it confusing again – as I guess strictly speaking doing it via ntdsutil is more of a ‘manual’ uninstall, as you have to DO stuff yourself – not just run a cmdlet while you drink coffee.

    ————–

    Just my 2 cents… you make your own call.




    2



    0
  5. Crusty Shabba says:

    Guess it all depends how you interpret the word ‘manually’ on the line ‘You need to uninstall Active Directory from DC5 manually’.

    ————–

    Why could it be D (The Remove-WindowsFeaturecmdlet)?

    Assume that the original question/answer just wasn’t dumped here correctly (or just not updated correctly when 2012R2 was released).

    We all know how Microsoft love their latest, greatest powershells, so on the real exam I doubt they’d still be asking 2012R2 candidates about the ‘deprecated-but-still-works-as-an-alias’ Remove-WindowsFeature cmdlet anymore.

    They’d be more likely to promote their 2012R2 ‘Uninstall-windowsfeature’ cmdlet instead.

    Either way, answer D is a solution – whether it meets their definition of a MANUAL uninstallation – I don’t know? This is the annoying part of Microsoft exams – you too often have to try and put yourself into the mind of whoever writes the test questions and guess exactly what they meant.

    ————–

    Why could it be B (The ntdsutil.exe command)?
    I guess if you assume ‘need to uninstall MANUALLY’ means that attempts at uninstalling AD from the server via usual, normal methods have gone bad – then yes you COULD emergency resort to a ntdsutil uninstall. But that would be a last resort, desperate measure as cleaning up all of the leftover metadata etc ain’t fun.

    Refer to here for an example – https://chinnychukwudozie.com/2014/01/27/using-ntdsutil-metada-cleanup-to-remove-a-failedoffline-domain-controller-object/

    But again, that word ‘MANUALLY’ makes it confusing again – as I guess strictly speaking doing it via ntdsutil is more of a ‘manual’ uninstall, as you have to DO stuff yourself – not just run a cmdlet while you drink coffee.

    ————–

    Just my 2 cents… you make your own call (bet this question worded like this doesn’t even exist on the exam anymore anyway!!)




    0



    0

Leave a Reply