I have just upgraded from Visual Studio 2012 to Visual Studio 2015. When I open the about box in Visual Studio, it tells me it is running .NET version 4.6.00081.
But while I seem to be able to load and run scripts within PowerShell ISE okay, running PowerShell from the command line gives me the following error.
Version v4.6.00081 of the .NET Framework is not installed and it is required to run version 3 of Windows PowerShell.
I have updated powershell.exe.config and powershell_ise.exe.config (under both the System32 and SysWow64 folders) to the following, but the error persists.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.6.00081"/>
<supportedRuntime version="v4.0.30319"/>
</startup>
</configuration>
I'm trying to run some existing PowerShell scripts. I'm a C# developer but I know virtually nothing about PowerShell. I've tried everything I could think of. Would love some suggestions on what else I could try.