diff --git a/Powershell Modules & NuGet Repo/Get-From_Artifactory.ps1 b/Powershell Modules & NuGet Repo/Get-From_Artifactory.ps1 new file mode 100644 index 0000000..5837450 --- /dev/null +++ b/Powershell Modules & NuGet Repo/Get-From_Artifactory.ps1 @@ -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 +} \ No newline at end of file