[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Java\jdk-13.0.2+8")
Microsoft PowerShell environment variable documentation
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Java\jdk-13.0.2+8")
Microsoft PowerShell environment variable documentation
Many online file downloads have a checksum in the form of a ‘hash’ code, allowing you to verify the file integrity. This can be useful when downloaded via a 3rd party mirror or to see if a file is corrupted.
There is a handy PowerShell command for this: Get-FileHash
The -Algorithm parameter allows you to get the hash for different algorithms. Use <tab> to cycle through the available options.
Taking a LibreOffice mirror download as an example.