none
SharePoint 2016 Prerequisite Installer Fails

    Question

  • I am trying to install SharePoint 2016 on a new VMWare image of Windows Server 2016 Data Center edition. I initially was performing a scripted installation that had ran flawlessly on Windows Servers that had been manually provisioned. I am now working on servers that have been automatically provisioned and the PreRequisite Installer is unable to get past to point of installing IIS. I had a completely new set of servers provisioned that do have access to the internet and ran the regular PreReq installer by simply right clicking and selecting run as administrator. Not even that worked. There's got to be something wrong with our server build but after spending three days trying to get the installer to work I don't know what that is.

    Here's my complete log file from the most recent failed install:

    2017-04-05 15:16:09 - Operating System: Windows 10
    2017-04-05 15:16:09 - Processor architecture is (9)
    2017-04-05 15:16:09 - Reading the following string value/name...
    2017-04-05 15:16:09 - Common Startup
    2017-04-05 15:16:09 - from the following registry location...
    2017-04-05 15:16:09 - SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    2017-04-05 15:16:09 - The value is...
    2017-04-05 15:16:09 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
    2017-04-05 15:16:09 - Trying to remove the startup task if there is any.
    2017-04-05 15:16:09 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\SharePointServerPreparationToolStartup_0FF1CE14-0000-0000-0000-000000000000.cmd
    2017-04-05 15:16:09 - Error: Startup task doesn't exist. This is not a continuation after a restart.
    2017-04-05 15:16:09 - Locating the following command line arguments file:
    2017-04-05 15:16:09 - D:\OncorSP2016Install\2016\SharePoint\PrerequisiteInstaller.Arguments.txt
    2017-04-05 15:16:09 - Error: This file does not exist
    2017-04-05 15:16:09 - Details of the current operating system:
    2017-04-05 15:16:10 - Major version number of the operating system:  (10)
    2017-04-05 15:16:10 - Minor version number of the operating system:  (0)
    2017-04-05 15:16:10 - Build number of the operating system:  (0X3839=14393)
    2017-04-05 15:16:10 - Major version number of the latest Service Pack:  (0)
    2017-04-05 15:16:10 - Minor version number of the latest Service Pack:  (0)
    2017-04-05 15:16:10 - Platform ID of the operating system:  (2)
    2017-04-05 15:16:10 - Product suites available on the operating system:  (0X190=400)
    2017-04-05 15:16:10 - Product type of the operating system: VER_NT_SERVER
    2017-04-05 15:16:10 - Product type:  (8)
    2017-04-05 15:16:10 - OS type:  (1)
    2017-04-05 15:16:10 - Configuring the application's property sheet...
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Windows Management Framework 3.0
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 - PowerShellVersion
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
    2017-04-05 15:16:10 - The value is...
    2017-04-05 15:16:10 - 5.1.14393.0
    2017-04-05 15:16:10 - A higher version of the prerequisite above is already installed
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Microsoft .NET Framework 4.6
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 - Version
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Microsoft\Net Framework Setup\NDP\V4\full
    2017-04-05 15:16:10 - The value is...
    2017-04-05 15:16:10 - 4.6.01586
    2017-04-05 15:16:10 - A higher version of the prerequisite above is already installed
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Microsoft Sync Framework Runtime v1.0 SP1 (x64)
    2017-04-05 15:16:10 - Reading version of the following file...
    2017-04-05 15:16:10 - C:\Windows\assembly\GAC_MSIL\Microsoft.Synchronization\1.0.0.0__89845dcd8080cc91\Microsoft.Synchronization.dll
    2017-04-05 15:16:10 - GetFileVersionInfoSize failed (-2147024894)
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Microsoft SQL Server 2012 Native Client
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 - Version
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Microsoft\Microsoft SQL Server\SQLNCLI11\CurrentVersion
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Microsoft ODBC Driver 11 for SQL Server
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 - Version
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Microsoft\Microsoft ODBC Driver 11 for SQL Server\CurrentVersion
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Windows Server AppFabric
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 - ProductVersion
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Microsoft\AppFabric\V1.0
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Microsoft Identity Extensions
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 -
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Microsoft\Microsoft Identity Extensions\Setup\1.0
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Microsoft Information Protection and Control Client 2.1
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 -
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Microsoft\MSIPC\CurrentVersion
    2017-04-05 15:16:10 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:10 - Microsoft WCF Data Services 5.6
    2017-04-05 15:16:10 - Reading the following string value/name...
    2017-04-05 15:16:10 - Version
    2017-04-05 15:16:10 - from the following registry location...
    2017-04-05 15:16:10 - SOFTWARE\Wow6432Node\Microsoft\Microsoft WCF Data Services\5.6
    2017-04-05 15:16:11 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:11 - Cumulative Update Package 7 for Microsoft AppFabric 1.1 for Windows Server (KB3092423)
    2017-04-05 15:16:11 - Reading the following DWORD value/name...
    2017-04-05 15:16:11 - IsInstalled
    2017-04-05 15:16:11 - from the following registry location...
    2017-04-05 15:16:11 - SOFTWARE\Wow6432Node\Microsoft\Updates\AppFabric 1.1 for Windows Server\KB3092423
    2017-04-05 15:16:11 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:11 - Visual C++ Redistributable Package for Visual Studio 2012
    2017-04-05 15:16:11 - Reading the following string value/name...
    2017-04-05 15:16:11 - Version
    2017-04-05 15:16:11 - from the following registry location...
    2017-04-05 15:16:11 - SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\VC\Runtimes\x64
    2017-04-05 15:16:11 - Check whether the following prerequisite is installed:
    2017-04-05 15:16:11 - Visual C++ Redistributable Package for Visual Studio 2015
    2017-04-05 15:16:11 - Reading the following string value/name...
    2017-04-05 15:16:11 - Version
    2017-04-05 15:16:11 - from the following registry location...
    2017-04-05 15:16:11 - SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64
    2017-04-05 15:16:19 - Beginning download/installation
    2017-04-05 15:16:19 - Created thread for installer
    2017-04-05 15:16:19 - Installing windows server roles and features.
    2017-04-05 15:16:19 - Preparing to run the following commands:
    2017-04-05 15:16:19 - Param(
     [String]$logFile
    )
    Import-Module Servermanager
    Start-Transcript -path $logFile
    $operation = Add-WindowsFeature NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-Pipe-Activation45,NET-WCF-HTTP-Activation45,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-Asp-Net45,Web-Net-Ext,Web-Net-Ext45,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,Xps-Viewer -verbose
    if ($operation.ExitCode -eq 'SuccessRestartRequired') {
      Stop-Transcript
      $host.SetShouldExit(3010)
    }
    elseif (!$operation.Success){
      Stop-Transcript
      $host.SetShouldExit(1000)
      exit
    }
    2017-04-05 15:16:19 - Logs for these operations will be available at:
    2017-04-05 15:16:19 - "C:\Users\unvlbes\AppData\Local\Temp\Pre378B.tmp.PS1.log"
    2017-04-05 15:16:19 - Executing PowerShell command:
    2017-04-05 15:16:19 - "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass "C:\Users\unvlbes\AppData\Local\Temp\Pre378B.tmp.PS1 -logFile C:\Users\unvlbes\AppData\Local\Temp\Pre378B.tmp.PS1.log"
    2017-04-05 15:16:20 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:21 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:22 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:23 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:24 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:25 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:26 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:27 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:28 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:29 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:30 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:31 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:32 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:33 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:34 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:35 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:36 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:37 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:38 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:39 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:40 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:41 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:42 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:43 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:44 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:45 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:46 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:47 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:48 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:49 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:50 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:51 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:52 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:53 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:54 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:55 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:56 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:57 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:16:58 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:00 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:01 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:02 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:03 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:04 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:05 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:06 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:07 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:08 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:09 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:10 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:11 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:12 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:13 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:14 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:15 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:16 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:17 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:18 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:19 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:20 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:21 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:22 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:23 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:24 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:25 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:26 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:27 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:28 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:29 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:30 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:31 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:32 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:33 - Install process returned (0X3E8=1000)
    2017-04-05 15:17:33 - Request for install time of Web Server (IIS) Role
    2017-04-05 15:17:33 - [In HRESULT format] (0X800703E8=-2147023896)
    2017-04-05 15:17:33 - Last return code (0X3E8=1000)
    2017-04-05 15:17:33 - Reading the following DWORD value/name...
    2017-04-05 15:17:33 - Flags
    2017-04-05 15:17:33 - from the following registry location...
    2017-04-05 15:17:33 - SOFTWARE\Microsoft\Updates\UpdateExeVolatile
    2017-04-05 15:17:33 - Reading the following string value/name...
    2017-04-05 15:17:33 - PendingFileRenameOperations
    2017-04-05 15:17:33 - from the following registry location...
    2017-04-05 15:17:33 - SYSTEM\CurrentControlSet\Control\Session Manager
    2017-04-05 15:17:33 - Reading the following registry location...
    2017-04-05 15:17:33 - SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
    2017-04-05 15:17:33 - Error: The tool was unable to install Web Server (IIS) Role.
    2017-04-05 15:17:33 - Last return code (0X3E8=1000)
    2017-04-05 15:17:33 - 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.
    2017-04-05 15:17:33 - Cannot retry
    2017-04-05 15:17:33 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:33 - Windows Management Framework 3.0
    2017-04-05 15:17:33 - Reading the following string value/name...
    2017-04-05 15:17:33 - PowerShellVersion
    2017-04-05 15:17:33 - from the following registry location...
    2017-04-05 15:17:33 - SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
    2017-04-05 15:17:33 - The value is...
    2017-04-05 15:17:33 - 5.1.14393.0
    2017-04-05 15:17:33 - A higher version of the prerequisite above is already installed
    2017-04-05 15:17:33 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:33 - Microsoft .NET Framework 4.6
    2017-04-05 15:17:33 - Reading the following string value/name...
    2017-04-05 15:17:33 - Version
    2017-04-05 15:17:33 - from the following registry location...
    2017-04-05 15:17:33 - SOFTWARE\Microsoft\Net Framework Setup\NDP\V4\full
    2017-04-05 15:17:33 - The value is...
    2017-04-05 15:17:33 - 4.6.01586
    2017-04-05 15:17:33 - A higher version of the prerequisite above is already installed
    2017-04-05 15:17:33 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:33 - Microsoft Sync Framework Runtime v1.0 SP1 (x64)
    2017-04-05 15:17:33 - Reading version of the following file...
    2017-04-05 15:17:33 - C:\Windows\assembly\GAC_MSIL\Microsoft.Synchronization\1.0.0.0__89845dcd8080cc91\Microsoft.Synchronization.dll
    2017-04-05 15:17:33 - GetFileVersionInfoSize failed (-2147024894)
    2017-04-05 15:17:33 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:33 - Microsoft SQL Server 2012 Native Client
    2017-04-05 15:17:33 - Reading the following string value/name...
    2017-04-05 15:17:33 - Version
    2017-04-05 15:17:33 - from the following registry location...
    2017-04-05 15:17:33 - SOFTWARE\Microsoft\Microsoft SQL Server\SQLNCLI11\CurrentVersion
    2017-04-05 15:17:33 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:33 - Microsoft ODBC Driver 11 for SQL Server
    2017-04-05 15:17:33 - Reading the following string value/name...
    2017-04-05 15:17:34 - Version
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Microsoft\Microsoft ODBC Driver 11 for SQL Server\CurrentVersion
    2017-04-05 15:17:34 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:34 - Windows Server AppFabric
    2017-04-05 15:17:34 - Reading the following string value/name...
    2017-04-05 15:17:34 - ProductVersion
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Microsoft\AppFabric\V1.0
    2017-04-05 15:17:34 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:34 - Microsoft Identity Extensions
    2017-04-05 15:17:34 - Reading the following string value/name...
    2017-04-05 15:17:34 -
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Microsoft\Microsoft Identity Extensions\Setup\1.0
    2017-04-05 15:17:34 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:34 - Microsoft Information Protection and Control Client 2.1
    2017-04-05 15:17:34 - Reading the following string value/name...
    2017-04-05 15:17:34 -
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Microsoft\MSIPC\CurrentVersion
    2017-04-05 15:17:34 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:34 - Microsoft WCF Data Services 5.6
    2017-04-05 15:17:34 - Reading the following string value/name...
    2017-04-05 15:17:34 - Version
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Wow6432Node\Microsoft\Microsoft WCF Data Services\5.6
    2017-04-05 15:17:34 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:34 - Cumulative Update Package 7 for Microsoft AppFabric 1.1 for Windows Server (KB3092423)
    2017-04-05 15:17:34 - Reading the following DWORD value/name...
    2017-04-05 15:17:34 - IsInstalled
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Wow6432Node\Microsoft\Updates\AppFabric 1.1 for Windows Server\KB3092423
    2017-04-05 15:17:34 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:34 - Visual C++ Redistributable Package for Visual Studio 2012
    2017-04-05 15:17:34 - Reading the following string value/name...
    2017-04-05 15:17:34 - Version
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\VC\Runtimes\x64
    2017-04-05 15:17:34 - Check whether the following prerequisite is installed:
    2017-04-05 15:17:34 - Visual C++ Redistributable Package for Visual Studio 2015
    2017-04-05 15:17:34 - Reading the following string value/name...
    2017-04-05 15:17:34 - Version
    2017-04-05 15:17:34 - from the following registry location...
    2017-04-05 15:17:34 - SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\x64
    2017-04-05 15:18:16 - Opening log file
    2017-04-05 15:18:16 - Opened action for user
    2017-04-05 15:18:16 - C:\Users\unvlbes\AppData\Local\Temp\prerequisiteinstaller.2017.04.05-15.16.09.log

    Any help would be greatly appreciated.

    Rebecca

    Wednesday, April 5, 2017 8:36 PM

All replies

  • Hi

    check this solution

    https://www.vioreliftode.com/index.php/sharepoint-2016-it-preview-there-was-an-error-during-installation/


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Wednesday, April 5, 2017 8:50 PM
  • Thank you, I will give that solution a try.

    Rebecca

    Wednesday, April 5, 2017 9:45 PM
  • So I tried this on three different Windows 2016 Servers. First I had to modify the powershell scripts to remove two of the components but I noticed that another user reported the same issue. After removing the ??? the script ran to approximately 92% and then threw a new error:

    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 process cannot access the file because it is being used by another process. Error: 0x80070020
    At line:1 char:1
    + Add-WindowsFeature Web-Server,windows-identity-foundation,
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
        Exception
        + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
       owsFeatureCommand

    Any additional insights would be appreciated

    Monday, April 10, 2017 5:10 AM
  • Hi,

    It seems that you failed to install IIS role. Check that you have Windows installation root available and use this PowerShell script to install PreRequisiteRoles :

    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,Application-Server,AS-Web-Support,AS-TCP-Port-Sharing,AS-WAS-Support, AS-HTTP-Activation,AS-TCP-Activation,AS-Named-Pipes,AS-Net-Framework,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer –Source "<WindowsInstallationPath>\sources\sxs" 

    • Replace <WindowsInstallationPath> with your path.
    • Save the script in a PowerShell script file, for example: SP2016RolesInstaller.ps1
    • Run this script from PowerShell command prompt with administrator privilege.
    • This script has 2 lines! there should be no line break in the 2nd line, started with Add-WindowsFeature

    Yours,

    Hamid

    Monday, February 26, 2018 11:31 AM
  • Hi All!
    For Windows Server 2016 Aplication Server Role was depreciated in 2016 and script has to be :

    _____

    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 G:\sources\sxs

    _____

    And change path  –Source G:\sources\sxs   according to your environment.

    Original post from here https://absolute-sharepoint.com/2017/08/the-tool-was-unable-to-install-web-server-iis-role-sharepoint-2016-on-windows-server-2016.html

    Hope this saves time to someone :) !


    Vadim Gerya, PMP



    • Edited by Vadim Gerya Monday, September 3, 2018 7:38 PM
    • Proposed as answer by taylor.l Friday, September 7, 2018 2:53 PM
    Monday, September 3, 2018 7:36 PM
  • Vadim has the correct answer here. Attach the disk and use the -source switch

    If this is helpful please mark it so. Also if this solved your problem mark as answer.

    Friday, September 7, 2018 2:54 PM