I have a server which we are using for Batch processing.
I can login to the server with svc_account and run powershell -f file.ps1
and it runs fine in either version 2 or 3 by the following -
powershell -Version 2 -f file.ps1
powershell -f file.ps1
If I attempt to run it through our batch processor I get the following message
Version v4.0.30319 of the .NET Framework is not installed and it is required to run version 3 of Windows PowerShell.
This error occurs regardless of if I get my batch processor to run as v3 or v2 of powershell.
Thing is, .NET is installed. 3.5, 4.0 and 4.5 all exist on this server so it's something with the account login that it's for some reason not recognizing that .NET is installed.