I got the bellow error when using powershell to install IIS on Windows Server 2016 Technical Preview 5 with MS SQL Server 2016. Any idea how to resolve this or workaround? Thanks.
PS C:Windowssystem32> Add-WindowsFeature NET-Framework-core, Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http
-Errors, Web-Http-Redirect, Web-Asp-Net, Web-Asp-Net45, Web-Net-Ext, Web-Net-Ext45, Web-ISAPI-Ext, Web-ISAPI-Filter, Web
-Http-Logging, Web-Log-Libraries, Web-Http-Tracing, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compressi
on, Web-Mgmt-Console, Web-Scripting-Tools
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.
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. Error: 0x800f081f
At line:1 char:1
+ Add-WindowsFeature NET-Framework-core, Web-Server, Web-Static-Content ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
owsFeatureCommand
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
False No Failed {}
Hello,
Looking at the error it requires the source files from the ISO. If you can mount the ISO and then add "–Source D:SourcesSxs" to the end of the command with the correct drive letter.
Thanks,
Trevor