Installation, Storage, and Compute with Windows Server 2016 — Question 271
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. thedns.execommand
- B. theoptionalfeatures.execommand
- C. theInstall-Packagecmdlet
- D. theEnable-WindowsOptionalFeaturecmdlet
Correct answer: D
Explanation
The correct answer is D, as the Enable-WindowsOptionalFeature cmdlet is specifically used to enable Windows features like the DNS Server role. The other options either do not relate to installing roles or are commands that do not apply in this context.