I've just done a fresh install of Python 2.7.14 on Windows Server 2012. Whenever I try to execute any script, I get an Access Denied error. This is regardless of the script I try to run, even something simple like
python -c "print 1" fails with the following error message in Powershell:
Program 'python.exe' failed to run: Access is deniedAt line:1 char:1 + python -c "print 1" + ~~~~~~~~~~~~~~~~~~~. At line:1 char:1 + python -c "print 1" + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) , ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed
Whereas the same command in CMD just yields
This happens even when running as administrator with elevated UAC status, so I'm at a loss here. Any ideas as to what's going on?
Edit: Forgot to mention, for some reason interactive mode works just fine.