Skip Ribbon Commands
Skip to main content

Quick Launch

Todd Klindt's home page > Todd Klindt's Office 365 Admin Blog > Posts > How to install SharePoint 2010 on Windows 2012 R2 Preview
September 02
How to install SharePoint 2010 on Windows 2012 R2 Preview

I’ve been playing with the Windows 2012 R2 Preview for a while, and for the most part I approve. Of course once it came out everyone and their dog was installing SharePoint 2013 on it. Why not? SharePoint 2013 is new and cool. I don’t blame them. But I wanted to be original. I wanted to go old school. Plus everyone else blogged installing SharePoint 2013 on it before I could. So I decided to install SharePoint 2010 on it instead. Since SharePoint 2010 Service Pack 2 added Windows 2012 support I figured I’d roll the dice. Was I crazy? Could it be done? Read on and find out.

I didn’t do anything too fancy to set this up. I installed a Windows 2012 R2 domain controller in 2012 R2 domain mode and created all of my usual Service Accounts. Then I spun up a second Windows 2012 R2 VM and joined it to that domain. Since I really only cared about SharePoint, I started on that before I even installed SQL. If I could get the Prereqs installed and get the SharePoint 2010 bits laid down, then I’d take the time to install SQL 2012 SP1. Let’s spin the wheel and see what happens.

Sadly, I met with disappointment immediately. I ran the SharePoint 2010 Prereq installer and it failed on the very first step. Sad smile

9-2-2013 5-10-15 PM

Much like me in 7th grade football, the Prereq installer has one failure and just gives up. It wasn’t able to configure IIS on the server. That’s no surprise, IIS has changed a lot since SharePoint 2010 came out and Windows 2008 R2 was the cool kid on the block. Like any self-respecting nerd I dusted myself off, drank some Mountain Dew, and dove right into the log files to see what had gone wrong. The Prereq installer even had a link to the log file, almost daring me to try to figure out what happened. I opened the file and did a “Ctrl-F” find for “error.” I found our culprit:

9-2-2013 3-34-17 PM

The Prereq installer was trying to install the .NET components into IIS and not having much luck. For the benefit of search engines (and to make this blog post look longer than it really is) I’ve included the text from the error:

2013-09-01 16:05:03 - "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe" -i
2013-09-01 16:05:03 - Error: Unable to install (2)
2013-09-01 16:05:03 - Error: [In HRESULT format] (-2147024894)
2013-09-01 16:05:03 - Error when registering ASP.NET v2.0.50727 with IIS
2013-09-01 16:05:03 - Last return code (2)
2013-09-01 16:05:03 - Error: The tool was unable to install Application Server Role, Web Server (IIS) Role.
2013-09-01 16:05:03 - Last return code (2)
2013-09-01 16:05:03 - 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-09-01 16:05:03 - Cannot retry


Fortunately it shows us exactly what the problem is. It tried to run aspnet_regiis.exe –i and it didn’t work. Out to the file system I go to see what’s up. It wasn’t good news:

9-2-2013 8-37-31 PM

Aspnet_regiis.exe was nowhere to be found. I’ve gotten pretty friendly with Windows 2012 so I had some ideas where to look for my missing friend. Since I was already in PowerShell I executed the following command:

Get-WindowsFeature | Where-Object {$ -like "*net*" }

If this doesn’t work for you, type Import-module servermanager to add the Get-WindowsFeature cmdlet.

This was to see which .NET features were installed. There was one Windows Feature that might be our missing link:

9-2-2013 8-52-50 PM

The ASP.NET 3.5 Feature includes .NET 2.0 and 3.0 so that might fit the bill. To add it, you’ll need your Windows 2012 R2 source media. Assuming your media is in your D: drive, the command to add it would look like this:

Add-WindowsFeature Web-Asp-Net -Source D:\sources\sxs

This will add the stuff that the Prereq installer wants. When you rerun the Prereq it’s all happy and it finishes successfully. On the back of this success I went ahead and installed SharePoint 2010. It worked. I decided to go for broke and see if I could actually get it all to work. I installed SQL and created a SharePoint farm. Once the farm was created I created a web app. Everything seems to work fine.

Here’s the finished product:

9-2-2013 9-32-29 PM

I know, I know. could be hosted anywhere. You’ll just have to take my word for it.

Since Windows Server 2012 R2 isn’t out yet, so SharePoint 2010 doesn’t officially support it. It does seem to work though.





its funny i had the same problem installing SharePoint 2013 on my sandbox and had to install teh dot net 3.5 feature manually from disk.  Did not have a problem with this in my dev and prod environment...i always attributed this to the VM template config that was not fully finalized when my sandbox was provisioned.
 on 9/3/2013 10:28 AM

Re: hmmm

Thanks for the feedback. Hopefully this blog post will help more people than I had imagined.

Todd O. KlindtNo presence information on 9/3/2013 11:25 AM

Same Problem on Windows Server 2008 R2

FYI, I got the same problem on my Windows Server 2008 R2 VM. I previously had SharePoint 2013 on this VM which I uninstall and I was trying to reinstall SP 2013.

I installed IIS and Application Server roles manually and error was still there. I ignored the error and installed SharePoint 2013 which was installed without any issue.

 on 10/4/2013 10:26 AM

Word of Caution

Hi Tushar,
I believe that you only really need Dot Net 3.5 for running sites on sharepoint 2014 in 2013 compatibility mode.  If you do find yourself having to use this scenario (db update for example), not having Dot net 3.5 will probably hurt you.  I always got errors when i accidentally set SharePoint 2010 to run on Dot net 4.
 on 10/7/2013 8:07 AM

Re: Word of Caution

SharePoint is so fussy about .Net. Why can't we all get along?

Todd O. KlindtNo presence information on 10/7/2013 11:33 AM

MS SharePoint 2010 SP2 for WS2012/R2 is now released

For all waiting on this, I just recently checked and.. see for yourself.
 on 12/16/2013 3:03 AM

Fails on Application Server Role :Configuration error

And I am installing SP 2013... Gives error code 2.
 on 12/29/2014 3:33 PM

Thanks a lot!

Very usefull hint! I spent 2 hours till i saw your blog and this entry. Thanks a lot!
 on 4/12/2016 3:40 AM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.


Body *

Today's date *

Select a date from the calendar.
Please enter today's date so I know you are a real person


Want a message when I reply to your comment? Put your Twitter handle here.