Sharepoint 2010 on Server 2012 R2

Sharepoint 2010 is not anywhere near as easy to love as Sharepoint 2013, but there’s plenty of places still running 2010 so if you need to create a quick lab setup it’s tempting to throw in a quick installation now and again- fortunately, Microsoft are happy for you to run it on Server 2012 (so you don’t have to go entirely back in time!)- Http:// 

but there are a couple of gotcha’s I ran into the other day – namely the points outlined in the link above- which I’ll highlight some key phrases from for ease of reference:

Starting May 1st, 2014 SharePoint 2010 SP2 slipstream media on VLSC and MSDN can be used to install SharePoint 2010 on Windows Server 2012 R2.

Only SP2 slipstream installations are supported on Windows Server 2012 R2 – you cannot first install RTM or SP1 and then SP2.

Also be aware that OS in place upgrade is NOT supported with SharePoint 2010. You need to perform a fresh installation of SharePoint 2010 SP2 slipstream on top of Windows Server 2012 R2.

OK, with those gotcha’s out the way (and presumably you’ve dug out the correct media!) – you’ll want to dive straight in… only to find the pre-req wizard, which previously kindly guided you through the install quickly, doesn’t play ball (at least in my experiences to date) with 2012 – fair enough I guess – throw in some extra 2012 .Net problems and you’ll find the whole “supported on” element not quite as easy as you might like- so I put together a quick deployment powershell “script” (set of commands really) here to grab your relevant patches, pre-reqs, and install alongside the relevant OS roles and features (some of these aren’t strictly requirements, but useful IMHO for Sharepoint deployments):

# Install Pre-reqs for Sharepoint 2010 on Windows Server 2012 R2!
# No log files written except the defaults
# Set up some bits – install path
mkdir C:\source
#Identity Foundation
Add-WindowsFeature windows-identity-foundation
#Microsoft Sync Framework Runtime 1.0 SP1 (x64)
wget -outfile C:\Source\MSSnyc.msi
C:\source\sync.msi /q
wget -outfile C:\source\sqlexp2008.exe
#Filter Pack
wget -outfile C:\source\filter.exe
C:\source\filter.exe /q
DISM.EXE /enable-feature /online /featureName:IIS-WebServerRole /featureName:IIS-WebServer
DISM.EXE /enable-feature /all /online /featureName:NetFx3
DISM.EXE /enable-feature /all /online /featureName:NetFx3ServerFeatures
DISM.EXE /enable-feature /all /online /featureName:IIS-ISAPIFilter
DISM.EXE /enable-feature /all /online /featureName:IIS-ISAPIExtensions
DISM.EXE /enable-feature /all /online /featureName:IIS-ApplicationDevelopment
DISM.EXE /enable-feature /all /online /featureName:IIS-ASPNET
DISM.EXE /enable-feature /all /online /featureName:IIS-NetFxExtensibility
DISM.EXE /enable-feature /all /online /featureName:IIS-WindowsAuthentication
add-windowsfeature Web-CGI
# IIS Manamagement Compatibility
DISM.EXE /enable-feature /all /online /featureName:IIS-ManagementService
DISM.EXE /enable-feature /all /online /featureName:IIS-IIS6ManagementCompatibility
DISM.EXE /enable-feature /all /online /featureName:IIS-Metabase
DISM.EXE /enable-feature /all /online /featurename:netfx4extended-aspnet45
# net Framework 3.5 Service Pack (NB: this presumes D drive has the Windows Server 2012 media inserted!)
# AS a side note, this plays up if you have KB2966828 installed (at time of writing) so instlal before updating or uninstall! so the next line will check if it’s there for you!
Get-Hotfix | where hotfixid -eq KB2966828
dism /online /enable-feature /featurename:netfx3 /all /source:d:\sources\sxs
# Chart Controls
wget -outfile:C:\Source\MSChart.exe
C:\source\mschart.exe /q

I hope that helps someone out there!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s