I would like to install .NET Framework 3.5 on Windows Server 2016 VM . Please see error messages below.
PS C:\Users\veryimportantpu> Add-WindowsFeature NET-Framework-Core
Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
One or several parent features are disabled so current feature can not be enabled. Error: 0xc004000d
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind owsFeatureCommand+ Add-WindowsFeature NET-Framework-Core
解决方案You should be able to enable this using Windows Features rather than PowerShell.
If you open a search in your VM and look for Windows Features you then pick Tun on or off Windows Features
Then you can enable it from there