Errors

Recently during a SharePoint 2013 deployment on a Offline Windows 2012 server, the following error was giving a bit of grief,

Of course, the server wasn’t connected to the Internet, so it could be missing something.
Following log file was generated:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
2013-10-08 12:53:45 - Processor architecture is (9)
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 - Common Startup
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
2013-10-08 12:53:45 - The value is...
2013-10-08 12:53:45 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
2013-10-08 12:53:45 - Trying to remove the startup task if there is any.
2013-10-08 12:53:45 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\SharePointServerPreparationToolStartup_0FF1CE14-0000-0000-0000-000000000000.cmd
2013-10-08 12:53:45 - Error: Startup task doesn't exist. This is not a continuation after a restart.
2013-10-08 12:53:45 - Locating the following command line arguments file:
2013-10-08 12:53:45 - C:\Sharepoint_2013\sp2013\PrerequisiteInstaller.Arguments.txt
2013-10-08 12:53:45 - Error: This file does not exist
2013-10-08 12:53:45 - Details of the current operating system:
2013-10-08 12:53:45 - Major version number of the operating system:  (6)
2013-10-08 12:53:45 - Minor version number of the operating system:  (2)
2013-10-08 12:53:45 - Build number of the operating system:  (0X23F0=9200)
2013-10-08 12:53:45 - Major version number of the latest Service Pack:  (0)
2013-10-08 12:53:45 - Minor version number of the latest Service Pack:  (0)
2013-10-08 12:53:45 - Platform ID of the operating system:  (2)
2013-10-08 12:53:45 - Product suites available on the operating system:  (0X110=272)
2013-10-08 12:53:45 - Product type of the operating system: VER_NT_SERVER
2013-10-08 12:53:45 - Product type:  (0X4F=79)
2013-10-08 12:53:45 - OS type:  (1)
2013-10-08 12:53:45 - Configuring the application's property sheet...
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Windows Management Framework 3.0
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 - PowerShellVersion
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
2013-10-08 12:53:45 - The value is...
2013-10-08 12:53:45 - 3.0
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 - CTPVersion
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
2013-10-08 12:53:45 - Could not find or unable to read CTPVersion key
2013-10-08 12:53:45 - The prerequisite above is already installed
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Microsoft .NET Framework 4.5
2013-10-08 12:53:45 - Reading the following DWORD value/name...
2013-10-08 12:53:45 - Install
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\Net Framework Setup\NDP\V4\full
2013-10-08 12:53:45 - The value is (1)
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 - Version
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\Net Framework Setup\NDP\V4\full
2013-10-08 12:53:45 - The value is...
2013-10-08 12:53:45 - 4.5.50709
2013-10-08 12:53:45 - The release version of .NET 4.5 is installed.
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Microsoft Sync Framework Runtime v1.0 SP1 (x64)
2013-10-08 12:53:45 - Reading version of the following file...
2013-10-08 12:53:45 - C:\Windows\assembly\GAC_MSIL\Microsoft.Synchronization\1.0.0.0__89845dcd8080cc91\Microsoft.Synchronization.dll
2013-10-08 12:53:45 - GetFileVersionInfoSize failed (-2147024894)
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Microsoft SQL Server 2008 R2 SP1 Native Client
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 - Version
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\Microsoft SQL Server\SQLNCLI10\CurrentVersion
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Windows Server AppFabric
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 - ProductVersion
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\AppFabric\V1.0
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Windows Identity Foundation (KB974405)
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 -
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\Microsoft Identity Extensions\Setup\1.0
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Microsoft Information Protection and Control Client
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 -
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Microsoft\MSIPC\CurrentVersion
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Microsoft WCF Data Services 5.0
2013-10-08 12:53:45 - Reading the following string value/name...
2013-10-08 12:53:45 - Version
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Wow6432Node\Microsoft\Microsoft WCF Data Services\5.0
2013-10-08 12:53:45 - Check whether the following prerequisite is installed:
2013-10-08 12:53:45 - Cumulative Update Package 1 for Microsoft AppFabric 1.1 for Windows Server (KB2671763)
2013-10-08 12:53:45 - Reading the following DWORD value/name...
2013-10-08 12:53:45 - IsInstalled
2013-10-08 12:53:45 - from the following registry location...
2013-10-08 12:53:45 - SOFTWARE\Wow6432Node\Microsoft\Updates\AppFabric 1.1 for Windows Server\KB2671763
2013-10-08 12:53:51 - Beginning download/installation
2013-10-08 12:53:51 - Created thread for installer
2013-10-08 12:53:51 - "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass "C:\Users\ADMSAM~1\AppData\Local\Temp\PreD9CB.tmp.PS1"
2013-10-08 12:53:52 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:53:53 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:53:54 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:53:55 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:53:56 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:53:57 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:53:58 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:53:59 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:00 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:01 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:02 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:03 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:04 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:05 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:06 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:07 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:08 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:09 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:10 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:11 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:12 - Request for install time of Application Server Role, Web Server (IIS) Role
2013-10-08 12:54:13 - Install process returned (0)
2013-10-08 12:54:13 - [In HRESULT format] (0)
2013-10-08 12:54:13 - "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe" -i
2013-10-08 12:54:13 - Install process returned (0)
2013-10-08 12:54:13 - [In HRESULT format] (0)
2013-10-08 12:54:13 - "C:\Windows\system32\cscript.exe" "C:\Windows\system32\iisext.vbs" /enext "ASP.NET v4.0.30319"
2013-10-08 12:54:13 - Install process returned (1)
2013-10-08 12:54:13 - [In HRESULT format] (-2147024895)
2013-10-08 12:54:13 - Error when enabling ASP.NET v4.0.30319
2013-10-08 12:54:13 - Last return code (1)
2013-10-08 12:54:13 - Reading the following DWORD value/name...
2013-10-08 12:54:13 - Flags
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\Updates\UpdateExeVolatile
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 - PendingFileRenameOperations
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SYSTEM\CurrentControlSet\Control\Session Manager
2013-10-08 12:54:13 - Reading the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
2013-10-08 12:54:13 - Error: The tool was unable to install Application Server Role, Web Server (IIS) Role.
2013-10-08 12:54:13 - Last return code (1)
2013-10-08 12:54:13 - 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.
2013-10-08 12:54:13 - Cannot retry
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Windows Management Framework 3.0
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 - PowerShellVersion
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
2013-10-08 12:54:13 - The value is...
2013-10-08 12:54:13 - 3.0
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 - CTPVersion
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
2013-10-08 12:54:13 - Could not find or unable to read CTPVersion key
2013-10-08 12:54:13 - The prerequisite above is already installed
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Microsoft .NET Framework 4.5
2013-10-08 12:54:13 - Reading the following DWORD value/name...
2013-10-08 12:54:13 - Install
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\Net Framework Setup\NDP\V4\full
2013-10-08 12:54:13 - The value is (1)
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 - Version
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\Net Framework Setup\NDP\V4\full
2013-10-08 12:54:13 - The value is...
2013-10-08 12:54:13 - 4.5.50709
2013-10-08 12:54:13 - The release version of .NET 4.5 is installed.
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Microsoft Sync Framework Runtime v1.0 SP1 (x64)
2013-10-08 12:54:13 - Reading version of the following file...
2013-10-08 12:54:13 - C:\Windows\assembly\GAC_MSIL\Microsoft.Synchronization\1.0.0.0__89845dcd8080cc91\Microsoft.Synchronization.dll
2013-10-08 12:54:13 - GetFileVersionInfoSize failed (-2147024894)
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Microsoft SQL Server 2008 R2 SP1 Native Client
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 - Version
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\Microsoft SQL Server\SQLNCLI10\CurrentVersion
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Windows Server AppFabric
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 - ProductVersion
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\AppFabric\V1.0
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Windows Identity Foundation (KB974405)
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 -
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\Microsoft Identity Extensions\Setup\1.0
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Microsoft Information Protection and Control Client
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 -
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Microsoft\MSIPC\CurrentVersion
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Microsoft WCF Data Services 5.0
2013-10-08 12:54:13 - Reading the following string value/name...
2013-10-08 12:54:13 - Version
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Wow6432Node\Microsoft\Microsoft WCF Data Services\5.0
2013-10-08 12:54:13 - Check whether the following prerequisite is installed:
2013-10-08 12:54:13 - Cumulative Update Package 1 for Microsoft AppFabric 1.1 for Windows Server (KB2671763)
2013-10-08 12:54:13 - Reading the following DWORD value/name...
2013-10-08 12:54:13 - IsInstalled
2013-10-08 12:54:13 - from the following registry location...
2013-10-08 12:54:13 - SOFTWARE\Wow6432Node\Microsoft\Updates\AppFabric 1.1 for Windows Server\KB2671763
2013-10-08 12:56:07 - Opening log file
2013-10-08 12:56:07 - Opened action for user
2013-10-08 12:56:07 - C:\Users\ADMSAM~1\AppData\Local\Temp\prerequisiteinstaller.2013.10.08-12.53.45.log

So thought about manually deploying Application and IIS role onto the server using the following script:

1
2
3
Import-Module ServerManager
Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45-Source D:\Sources\sxs
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

Nope no luck.
Within the error log there seems to be some complain about PowerShell as well, so jumping to the conclusion that due to some GPO, PowerShell execution was getting restricted. Ran the following command

1
Set-Execution Remotesigned

Nope no luck.

Solution:

Requirement: Windows 2012 Media

Run the following script from PowerShell with the source being pointed at Windows 2012 Media

1
2
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 D:\sources\sxs

Download Pre-reqs and save it within the SharePoint 2013 folder. Download script available here.

 

To run the Pre-requisite software via script copy the following script and edit variables accordingly:

1
2
3
4
5
6
7
8
##### Set Local Variables
#Root Prerequisites Directory
$PrereqRoot = "#Path”
#SharePoint Install Media Directory
$SPRoot = "#Path”
#####
cd $SPRoot
.\PrerequisiteInstaller.exe /SQLNCli:"$PrereqRoot\sqlncli.msi" /PowerShell:"$PrereqRoot\Windows6.1-KB2506143-x64.msu" /NETFX:"$PrereqRoot\dotnetfx45_full_x86_x64.exe" /IDFX:"$PrereqRoot\Windows6.1-KB974405-x64.msu" /Sync:"$PrereqRoot\Synchronization.msi" /AppFabric:"$PrereqRoot\WindowsServerAppFabricSetup_x64.exe" /IDFX11:"$PrereqRoot\MicrosoftIdentityExtensions-64.msi" /MSIPCClient:"$PrereqRoot\setup_msipc_x64.msi" /WCFDataServices:"$PrereqRoot\WcfDataServices.exe" /KB2671763:"$PrereqRoot\AppFabric1.1-RTM-KB2671763-x64-ENU.exe"

After a couple of reboots all pre-requisite software should be installed J

 

 

Cheers