Upgrading Your Skills to MCSA: Windows Server 2016 — Question 62

You have a server named Server1 that runs Windows Server 2016.
You need to install the DNS Server role on Server1.
What should you run?

Answer options

Correct answer: D

Explanation

The correct answer is D, as the Enable-WindowsOptionalFeature cmdlet is specifically designed to enable Windows features including the DNS Server role. The other options are not appropriate for installing Windows Server roles; for instance, Install-Package and Add-WindowsPackage are used for different types of installations, while dnscmd.exe is a tool for managing DNS servers rather than installing them.