Installation, Storage, and Compute with Windows Server 2016 — Question 27
You have a Nano Server named Nano1. Which cmdlet should you use to identify whether the DNS Server role is installed on Nano1?
Answer options
- A. Find-NanoServerPackage
- B. Get-Package
- C. Find-Package
- D. Get-WindowsOptionalFeature
Correct answer: D
Explanation
The correct cmdlet is Get-WindowsOptionalFeature, as it allows you to check for optional features, including the DNS Server role, on Windows systems. The other options, while related to package management, do not specifically provide information about installed roles or features.