How to change Powershell CLR version when running commands remotely? How to change Powershell CLR version when running commands remotely? powershell powershell

How to change Powershell CLR version when running commands remotely?


Try creating a c:\windows\System32\wsmprovhost.exe.config file and a c:\windows\SysWOW64\wsmprovhost.exe.config file in 64bit OS like this:

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