How can windows optional features be installed on a server that does not have internet access?
Enable-WindowsOptionalFeature -Online -FeatureName "IIS-IPSecurity" -All
This works fine with most of the features, as I assume they are packaged (but not activated) with windows server 2016 (standard). Two features in particular fail to install as the server has no internet connection:
Enable-WindowsOptionalFeature : The source files could not be found.
Use the "Source" option to specify the location of the files that are
required to restore the feature. For more information on specifying a source
location, see
http://go.microsoft.com/fwlink/?LinkId=243077.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName "IIS-NetFxExtensib ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
The error mentions using the -Source option to potentially specify a local source, but in the linked documentation I cannot find any reference as to how to actually acquire these source files individually to install from.
Are these files available? or do I have to build a image to use with DISM?
C:\Windows\WinSxS\amd64_microsoft-windows-iis-netfxextensibility_.....
fails to find the source - I assume this is where it's looking for the source anyway? the only file in there is validcfg.dll