November Happy Hour will be moved to Thursday December 5th.

Powershell 4?

Vote:
 

Hi, I am trying to run the "Install site without database" from the Deployment Center and got the following error:

Add-PSSnapin : Incorrect Windows PowerShell version 4.0. Windows PowerShell ver
sion 2.0 is supported in the current console.

At C:\Program Files (x86)\EPiServer\CMS\6.0.530.0\Install\System Scripts\Instal
l Site (No database).ps1:29 char:14
+     Add-PSSnapin <<<<  EPiServer.Install.Common.1
    + CategoryInfo          : InvalidArgument: (EPiServer.Install.Common.1:Stri
ng) [Add-PSSnapin], PSArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Add
PSSnapinCommand

Is there a way to specify the powershell version to be used in the EPiServerInstall.exe.config? I tried to add

<configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v2.0.50727"/>
    </startup>
</configuration>

but the deployment center crashes at startup.

Thanks

#112592
Oct 30, 2014 16:13
Vote:
 
<pre><code>&lt;configuration&gt; &lt;runtime&gt; &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name="System.Management.Automation" publicKeyToken="31bf3856ad364e35" /&gt; &lt;publisherPolicy apply="no" /&gt; &lt;/dependentAssembly&gt; &lt;/assemblyBinding&gt; &lt;/runtime&gt; &lt;/configuration&gt;<br /><br />also tried that but got the same crash<br /></code></pre>
#112593
Oct 30, 2014 16:15
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.