I came accross many problems installing SP 2010 on a Windows Server 2012 R2 server, mainly because the Powershell version (4) did not support a whole bunch of the PS commands in the script.
Also, all commands that had to do with configuring IIS or Managing the Server were incompatible.
The errors were mainly on :
- import-module WebAdministration.psd1
- servermanager.psd1
I actually could go thru the installation by temporarely replacing those 2 files by the Windows 2008 R2 version of the files. Then the script completed.
We also had to add "-version 2" in the -ArgumentList of all the Powershell commands in the script, for many commands were not backwards compatible (or so it seamed).
Anyhow ... keep in mind it might be easier to install SP2010 on Windows 2012 R2 manually ... until the script is updated ...
Comments: I don't expect SharePoint 2010 on Win 2012 R2 will be a common scenario, at least enough to justify the effort to work around the issue.
Also, all commands that had to do with configuring IIS or Managing the Server were incompatible.
The errors were mainly on :
- import-module WebAdministration.psd1
- servermanager.psd1
I actually could go thru the installation by temporarely replacing those 2 files by the Windows 2008 R2 version of the files. Then the script completed.
We also had to add "-version 2" in the -ArgumentList of all the Powershell commands in the script, for many commands were not backwards compatible (or so it seamed).
Anyhow ... keep in mind it might be easier to install SP2010 on Windows 2012 R2 manually ... until the script is updated ...
Comments: I don't expect SharePoint 2010 on Win 2012 R2 will be a common scenario, at least enough to justify the effort to work around the issue.