Add Powershell Modules & NuGet Repo/Get-From_Artifactory.ps1

This commit is contained in:
2026-07-01 18:54:55 +00:00
parent ee8bc83baf
commit 196d3d83a3
@@ -0,0 +1,22 @@
<#
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
}