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
- A. the Install-Package cmdlet
- B. the setup.exe command
- C. the dnscmd.exe command
- D. the Enable-WindowsOptionalFeature cmdlet
- E. the Add-WindowsPackage cmdlet
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.