Skip to content

Instantly share code, notes, and snippets.

View pjudt's full-sized avatar

Paul Judt pjudt

View GitHub Profile
@chrisdpa-tvx
chrisdpa-tvx / install_java.ps1
Last active June 1, 2021 18:00
Install Java JRE on windows silently using powershell
$URL=(Invoke-WebRequest -UseBasicParsing https://www.java.com/en/download/manual.jsp).Content | %{[regex]::matches($_, '(?:<a title="Download Java software for Windows Online" href=")(.*)(?:">)').Groups[1].Value}
Invoke-WebRequest -UseBasicParsing -OutFile jre8.exe $URL
Start-Process .\jre8.exe '/s REBOOT=0 SPONSORS=0 AUTO_UPDATE=0' -wait
echo $?