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.
Comments: 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
Note: I have a POC of this if you are interested.
Comments: 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