Trying to install SharePoint 2016 on Windows Server 2019 Standard but getting error when running perquisite installer. IIS is already installed on this machine and internet is working.
Here's the prerequisite installer error:
Error logs shows this:
2022-09-22 18:37:11 - Request for install time of Web Server (IIS) Role
2022-09-22 18:37:11 - Install process returned (0X3E8=1000)
2022-09-22 18:37:11 - [In HRESULT format] (0X800703E8=-2147023896)
2022-09-22 18:37:11 - Last return code (0X3E8=1000)
2022-09-22 18:37:11 - Reading the following DWORD value/name...
2022-09-22 18:37:11 - Flags
2022-09-22 18:37:11 - from the following registry location...
2022-09-22 18:37:11 - SOFTWARE\Microsoft\Updates\UpdateExeVolatile
2022-09-22 18:37:11 - Reading the following string value/name...
2022-09-22 18:37:11 - PendingFileRenameOperations
2022-09-22 18:37:11 - from the following registry location...
2022-09-22 18:37:11 - SYSTEM\CurrentControlSet\Control\Session Manager
2022-09-22 18:37:11 - Reading the following registry location...
2022-09-22 18:37:11 - SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
2022-09-22 18:37:11 - Error: The tool was unable to install Web Server (IIS) Role.
2022-09-22 18:37:11 - Last return code (0X3E8=1000)
2022-09-22 18:37:11 - Options for further diagnostics: 1. Look up the return code value 2. Download the prerequisite manually and verify size downloaded by the prerequisite installer. 3. Install the prerequisite manually from the given location without any command line options.
2022-09-22 18:37:11 - Cannot retry
Then I tried following Powershell command but again error:
Import-Module ServerManager
Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer -Source 'C:\Source\SW_DVD9_Win_Server_STD_CORE_2019_1809.18_64Bit_English_DC_STD\sources\sxs'
Error
Log at %windir%\logs\cbs\cbs.log shows this:
2022-09-22 18:47:33, Info CBS Exec: Processing complete. Session: 30985882_2537736691, Package: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.17763.1, Identifier: Windows Foundation [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
2022-09-22 18:47:33, Error CBS Failed to perform operation. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
2022-09-22 18:47:33, Info CBS Session: 30985882_2537736691 finalized. Reboot required: no [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
2022-09-22 18:47:33, Info CBS Failed to FinalizeEx using worker session [HRESULT = 0x80073701]
The source sxs folder defined in Powershell above only contain these 4 files. I am not sure if this is correct or not.
How to fix this issue?