Installation, Storage, and Compute with Windows Server 2016 — Question 158
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 Add-WindowsPackage cmdlet
- B. the dnscmd.exe command
- C. the optionalfeatures.exe command
- D. the Add-WindowsFeature cmdlet
- E. the dnscmd.exe command
- F. the dns.exe command
Correct answer: D
Explanation
The correct command to install the DNS Server role on Windows Server 2016 is the Add-WindowsFeature cmdlet. The other options either do not pertain to installing server roles or are not valid commands for this purpose.