From 6c430f8c24ceccfc1636ec9ec5691bf0084302a9 Mon Sep 17 00:00:00 2001 From: eeckert Date: Thu, 10 Aug 2023 13:54:29 -0600 Subject: [PATCH] add more detail to output file --- Download-SnapperReports.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Download-SnapperReports.ps1 b/Download-SnapperReports.ps1 index 1ed20fd..01cf2dd 100644 --- a/Download-SnapperReports.ps1 +++ b/Download-SnapperReports.ps1 @@ -34,7 +34,7 @@ do { if ($_) { Write-Debug -Message ("Checking " + $_.unique_id) -Debug $testURI = $_.pdf_link + '&auth_token=' + $USING:APIToken - $Outfile = $USING:OutputPathBase_Project + '\' + $_.unique_id + ".pdf" + $Outfile = $USING:OutputPathBase_Project + '\' + $_.unique_id + '_' + $_.Date.Substring(0,10) + ".pdf" if (!(Test-Path $Outfile)) { Write-Debug ("Saving file: " + $Outfile) -Debug Invoke-WebRequest -Uri $testURI -OutFile $Outfile