From cef6cb4e8d64b7eb84b473b59584e42ce8084f77 Mon Sep 17 00:00:00 2001 From: Gabe Date: Fri, 8 Aug 2025 17:30:27 +0000 Subject: [PATCH] Update Functions Scripts/Functions.ps1 --- Functions Scripts/Functions.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Functions Scripts/Functions.ps1 b/Functions Scripts/Functions.ps1 index 612946e..cbab864 100644 --- a/Functions Scripts/Functions.ps1 +++ b/Functions Scripts/Functions.ps1 @@ -10,7 +10,6 @@ Script to hold all functions to make updating other scripts easier .PARAMETER EPCache_Site_Directory Combines the EPCacheSite with the EPCache_Folder variables - #> [CmdletBinding()] @@ -30,7 +29,6 @@ Param( $Global:EPCacheLocalLocation = $EPCacheLocal + '\' + $File_Name ) - #Variables for downloading from Online #$App_Name = "" @@ -64,7 +62,8 @@ 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) { (new-object System.Net.WebClient).DownloadFile($PSCPURL, $PSCPLOC) | Out-Null } + If ((Test-Path $PSCPLOC) -eq $False) { Invoke-WebRequest -UseBasicParsing $PSCPURL | Out-File $PSCPLOC } + #(new-object System.Net.WebClient).DownloadFile($PSCPURL, $PSCPLOC) | Out-Null } If ($null -eq $ENV:EPCacheSite) { Write-Host "Can't communicate with the $ENV:EPCacheSite."