Installation, Storage, and Compute with Windows Server 2016 — Question 263
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 Add-WindowsPackage cmdlet
- C. the Install-WindowsFeature cmdlet
- D. the setup.exe command
Correct answer: C
Explanation
The correct answer is C, as the Install-WindowsFeature cmdlet is specifically designed for adding roles and features in Windows Server. Options A and B are not relevant for installing server roles, and D is incorrect because setup.exe is typically used for installing Windows operating systems rather than server roles.