Update Functions Scripts/Functions.ps1
This commit is contained in:
@@ -10,7 +10,6 @@ Script to hold all functions to make updating other scripts easier
|
|||||||
|
|
||||||
.PARAMETER EPCache_Site_Directory
|
.PARAMETER EPCache_Site_Directory
|
||||||
Combines the EPCacheSite with the EPCache_Folder variables
|
Combines the EPCacheSite with the EPCache_Folder variables
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
@@ -30,7 +29,6 @@ Param(
|
|||||||
$Global:EPCacheLocalLocation = $EPCacheLocal + '\' + $File_Name
|
$Global:EPCacheLocalLocation = $EPCacheLocal + '\' + $File_Name
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
#Variables for downloading from Online
|
#Variables for downloading from Online
|
||||||
|
|
||||||
#$App_Name = ""
|
#$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 to test if communication with the probe is possible, and to donwload the installer
|
||||||
Function Test-Probe_MoveIT {
|
Function Test-Probe_MoveIT {
|
||||||
#Download PSCP.exe if it does not exist
|
#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) {
|
If ($null -eq $ENV:EPCacheSite) {
|
||||||
Write-Host "Can't communicate with the $ENV:EPCacheSite."
|
Write-Host "Can't communicate with the $ENV:EPCacheSite."
|
||||||
|
|||||||
Reference in New Issue
Block a user