We have a virtual server running Windows Server 2012 R2. On Friday the version of java was updated from 1.8.0_27 to 1.8.0_40. As far as I know, this was the only change made.
Since that time, I can run java directly from the command line or in batch files, but previously working powershell scripts that use Start-Process to start java, e.g.
$process = Start-Process -FilePath c:\ProgramData\Oracle\java\javapath\java.exe -ArgumentList $report_args -PassThru -Wait
give the error "Start-Process : This command cannot be run completely because the system cannot find all the information required." The java executable actually is started and finishes its task correctly, but in the meantime the powershell script has gone down the path to reporting the error.
System.Diagnostics.Process.Start (in C#) is also reporting a failure when starting java.
Any ideas on things to look into for the message "Start-Process : This command cannot be run completely because the system cannot find all the information required."?