Upgrading Your Skills to MCSA: Windows Server 2016 — Question 85
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 dnscmd.exe command
- B. the dns.exe command
- C. the Install-Package cmdlet
- D. the Enable-WindowsOptionalFeature cmdlet
- E. the setup.exe command
- F. 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 like the DNS Server role. The other options do not serve the purpose of adding Windows roles or features directly, making them unsuitable for this task.