diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 0536bb6c2b4..62ad4a0c07e 100755 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -38,7 +38,7 @@ param ( throw 'Unsupported platform' } - $temppath = ($env:TMP, $env:TEMP, "$(Get-Location)" -ne $null)[0] + $temppath = ([System.IO.Path]::GetTempPath(), $env:TMP, $env:TEMP, "$(Get-Location)" -ne $null)[0] [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" if ($null -eq $installdir -or $installdir -match '^\s*$') {