Installare SharePoint 2013 su Windows Server 2012 R2 ancora problemi

L'installazione di SharePoint 2013 su Windows Server 2012 R2 sembra avvolta da una maledizione.

Partendo dal presupposto che la versione RTM di SharePoint non è supportata su questo OS, l'unico sistema è quello di creare un'installazione slipstreaming di SharePoint + SP1, ricordando di NON utilizzare eventuali ISO scaricabili da internet con data anteriore al 17 Aprile 2014 (sul sito ufficiale MS ancora non sono state rilasciate), giorno in cui è stata ufficialmente la SP1 rivista e corretta dai bug precedenti.

Consultate la KB per maggiori dettagli: https://support.microsoft.com/kb/2891274/it

Ma non è finita qui :(

Pur avendo a disposizione una ISO creata da voi in slipstreaming, l'installazione di SharePoint fallirà ugualmente a causa di un problema con la configurazione dei ruoli Application e IIS di Windows Server 2012 R2.

Gli errori che potete trovare sul log sono i seguenti:

1. Error: Startup task doesn’t exist. This is not a continuation after a restart

2014-02-10 15:58:56 – C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\SharePointServerPreparationToolStartup_0FF1CE14-0000-0000-0000-000000000000.cmd
2014-02-10 15:58:56 – Error: Startup task doesn’t exist. This is not a continuation after a restart.
2014-02-10 15:58:56 – Locating the following command line arguments file:
2014-02-10 15:58:56 – E:\PrerequisiteInstaller.Arguments.txt

2. Error: [In HRESULT format] (-2147024894)

2013-10-02 15:59:02 – Created thread for installer
2013-10-02 15:59:02 – “C:\Windows\system32\ServerManagerCmd.exe” -inputpath “C:\Users\ADMINI~1\AppData\Local\Temp\PreB8C.tmp.XML”
2013-10-02 15:59:02 – Error: Unable to install (2)
2013-10-02 15:59:02 – Error: [In HRESULT format] (-2147024894)
2013-10-02 15:59:02 – Last return code (2)
2013-10-02 15:59:02 – Reading the following DWORD value/name…

Error: The tool was unable to install Application Server Role, Web Server (IIS) Role

SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
2013-10-02 15:59:02 – Error: The tool was unable to install Application Server Role, Web Server (IIS) Role.
2013-10-02 15:59:02 – Last return code (2)
2013-10-02 15:59:02 – 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-02 15:59:02 – Cannot retry

Navigando su internet ho trovato questa serie di soluzioni che, applicate insieme, hanno funzionato permettendomi di installare con successo SharePoint 2013 su Windows Server R2

1. Aprire la console di PowerShell come Administrator ed eseguire i seguenti comandi (E:\ è il drive dove è stata montata la ISO di Windows):

            Import-Module ServerManager

            Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45 -Source E:\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 -Source E:\Sources\sxs

2. Scaricare tutti i prerequisiti di SharePoint 2013 nella cartella locale dei prerequisiti

SQL Server 2008 R2 SP1 Native Client
Microsoft WCF Data Services 5.0
Microsoft Information Protection and Control Client (MSIPC)
Microsoft Sync Framework Runtime v1.0 SP1 (x64)
Windows Identity Extensions

Windows Identity Foundation (KB974405)
Windows Server AppFabric
CU 1 for AppFabric 1.1 (KB2671763)

3. Installare tutti i prerequisiti direttamente dalla cartella dei prerequisiti nell'ordine esatto con cui sono stati elencati qui eccetto gli utlimi due.

4. Per installare AppFabric sul server eseguire questo comando WindowsServerAppFabricSetup_x64.exe /i CacheClient,CachingService,CacheAdmin /gac

5. Infine installare AppFabric1.1-RTM-KB2671763-x64-EN2013-with-sp1.aspx

6. Riavviare il server