Skip to content

Tag: powershell

Powershell is always using wrong Java

As far as i know you can use every Java version when you are just in the right directory. Lets say i have on my PC Java 8 and Java 15. They are both located in C:Program Filesjava. So when i go in C:Program Filesjavajre1.8.0_291bin and run in cmd java.exe -version i get the version 1.8 . The same goes

Powershell install Java silently

I need to install new Java update silently. I have these arguments for installation: and I tried: and also: and both version has prompt dialog. How to install it silently? Answer I found solution in cmdLet Execute-Process via this script. Works fine! And calling it: