From 196d3d83a33b4a79cb959c562624a7617a2cdae5 Mon Sep 17 00:00:00 2001 From: Gabe Date: Wed, 1 Jul 2026 18:54:55 +0000 Subject: [PATCH] Add Powershell Modules & NuGet Repo/Get-From_Artifactory.ps1 --- .../Get-From_Artifactory.ps1 | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Powershell Modules & NuGet Repo/Get-From_Artifactory.ps1 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