diff --git a/Functions Scripts/Functions.ps1 b/Functions Scripts/Functions.ps1 index cbab864..e19c9fc 100644 --- a/Functions Scripts/Functions.ps1 +++ b/Functions Scripts/Functions.ps1 @@ -62,7 +62,7 @@ Function Get-Software ($CPU = $ENV:PROCESSOR_ARCHITECTURE) { #Function to test if communication with the probe is possible, and to donwload the installer Function Test-Probe_MoveIT { #Download PSCP.exe if it does not exist - If ((Test-Path $PSCPLOC) -eq $False) { Invoke-WebRequest -UseBasicParsing $PSCPURL | Out-File $PSCPLOC } + If ((Test-Path $PSCPLOC) -eq $False) { Invoke-WebRequest -UseBasicParsing $PSCPURL | Out-File $PSCPLOC -Force } #(new-object System.Net.WebClient).DownloadFile($PSCPURL, $PSCPLOC) | Out-Null } If ($null -eq $ENV:EPCacheSite) {