Powershell 2.0 Remoting loading a .Net 4.0 dll Powershell 2.0 Remoting loading a .Net 4.0 dll powershell powershell

Powershell 2.0 Remoting loading a .Net 4.0 dll


The solution is to create a c:\windows\System32\wsmprovhost.exe.config file and a c:\windows\SysWOW64\wsmprovhost.exe.config file, on the server, similar to the one I found at: http://poshcode.com/2045

<?xml version="1.0" ?><configuration>  <startup useLegacyV2RuntimeActivationPolicy="true">    <supportedRuntime version="v4.0" />    <supportedRuntime version="v2.0" />  </startup></configuration>

I found the following article, which hinted at wsmprovhost.exe needing to be configured just like the powershell.exe file.http://tfl09.blogspot.com/2010/08/using-later-versions-of-net-framework.html