22 lines
556 B
PowerShell
22 lines
556 B
PowerShell
<#
|
|
Author: Gabe Kerntke
|
|
Date: 04-29-2026
|
|
|
|
.Synopsis
|
|
Function to download package from Artifactory
|
|
|
|
.Modified
|
|
2026-04-29 (GabeK) - Original script created
|
|
#>
|
|
|
|
Set-StrictMode -Version 2.0
|
|
|
|
#Downloads package from Artifactory
|
|
Function Get-From_Artifactory {
|
|
$Download_URL = $Artifactory_URL + $Artifactory_Installer_Path + $Installer_Name
|
|
# Ensure the folder exists
|
|
If ((Test-Path $Dest_Path) -eq $False) {
|
|
New-Item -ItemType directory -Path $Dest_Path
|
|
}
|
|
Invoke-WebRequest $Download_URL -Credential $Creds -OutFile $Dest_File
|
|
} |