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?
A. the
Install-Package
cmdlet
B. the
setup.exe
command
C. the
dnscmd.exe
command
D. the
Enable-WindowsOptionalFeature
cmdlet
E. the
Add-WindowsPackage
cmdlet
Explanation:
Enable-WindowsOptionalFeature -Online -FeatureName DNS-Server-Full-Role
References:
https://docs.microsoft.com/en-us/powershell/module/dism/enable-windowsoptionalfeature?view=win10-ps
https://blogs.technet.microsoft.com/teamdhcp/20
15/12/04/how-to-deploy-windows-dns-server-on-nano-server/
None of those answers are correct. The PS command would be
Install-WindowsFeature -Name DNS -IncludeManagementTools
0
4