Script fails with PowerShell 3 and SharePoint 2010


The current script (and starting batch file) launch the default version of powershell -- this is always to newest version. The issue is SharePoint 2010 powershell scriptlets do not run under PS3. It would be great if there was a way to tell AutoSPInstaller to always use a specific version.

Note: I have a POC of this if you are interested.
Closed Jul 7, 2014 at 2:40 AM by brianlala


Wobba wrote Feb 5, 2014 at 11:09 AM

I wrote a post on how to get this working at http://techmikael.blogspot.com/2014/02/installing-sharepoint-2010-with.html which should be useful.


wrote Jul 7, 2014 at 2:40 AM

Resolved with changeset 109744: Changes in this release:
  • Much improved support for SharePoint 2010 on Windows Server 2012 R2; deals with PowerShell version issues by launching external PS windows/sessions where required!
  • New function Get-MajorVersionNumber does... exactly that. Is now called in many other functions for better support of running individual functions on their own (e.g. creating web apps only)
  • Fixed script halting if now Office Web Apps updates were found (issue 20487)
  • New function Stop-DefaultWebsite allows this functionality to be executed inline or in a separate window for SP2010 on Win2012 R2 support
  • AssignCert function updated to support parameters, again for SP2010 on Win2012 R2 support
  • Support for having multiple web apps with Type = "Portal" (for re-using app pools)
  • Fixed function AddToHOSTS to prevent duplicate entries