Monday 10 March 2014

SharePoint 2010 on Windows Server 2012

When you try and run the SharePoint 2010 prerequisite on Windows Server 2012 R2, you will receive an error and it fails right away.



To get around the issue, Run PowerShell and execute this command:
Get-WindowsFeature | Where-Object {$_.name -like "*net*" }

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

The above command is to see which .NET features were installed. ASP.net 3.5 is not installed and that might be our missing link:


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

If you have an .iso file, mount it to a drive and then replace the "D:\" with your own drive letter.


After executing the command, wait for few minutes until the new command line shows (as bellow) this will add the asp.net stuff that the SharePoint prerequisite installer wants.


Now if we run the perquisite again, it runs successfully and we can move on to install SharePoint.


Note: in my case, I had to restart windows first before continue the installation.