Closed StefanSchoof closed 8 years ago
Yes. the template in this repo removes all unused features from disk so its best to first enable whatever features you think you need. The relevant code s at https://github.com/mwrock/packer-templates/blob/master/scripts/package.ps1#L10-L15
Thanks for the explanation.
I wonder why removing means unable to install without source. In the Windows2012R2 box the Add-WindowsFeature commands runs with success.
Even on 2012R2 I have found that some features can be installed afterwards without issue and others require a source. I really dont know how to determine up front which features are affected but I soppose the list has changed between 2012R2 and 2016.
With TP5 I could install the AD-Domain-Services Feature with a source. In the RTM this always fails, other Features like RSAT-DNS-Server work with the same source (and no internet connection)
There is a Stack Overflow Question for this Issue (https://stackoverflow.com/questions/39469452/installing-removed-windows-features). Unsure the cause is something in the windows image from MS or in the box.
The installation of a windows feature ask for a source directory and is not able to download it from windows update. I tried using the gui and powershell with no success.