From 797cef6493b35880f77a0f1cf0c97660f2f485f8 Mon Sep 17 00:00:00 2001 From: eeckert Date: Thu, 14 Sep 2023 13:17:16 -0600 Subject: [PATCH] slow it down a bit... --- Get-ProjectFolders.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Get-ProjectFolders.ps1 b/Get-ProjectFolders.ps1 index f168bfb..788ac72 100644 --- a/Get-ProjectFolders.ps1 +++ b/Get-ProjectFolders.ps1 @@ -52,7 +52,7 @@ $OfficeList | ForEach-Object -parallel { # $ProjectFolders now contains all folders down to the 3rd level of project number - for Example, 1234-567-001. We can now generate a project number for the output file. # We need to get a file count for each "last" folder - IE, 001 in the example 1234-567-001. - $ProjectFolders | ForEach-Object -ThrottleLimit 15 -Parallel { + $ProjectFolders | ForEach-Object -ThrottleLimit 5 -Parallel { $PathToDB_Copy = $USING:PathToDB_Copy_Main $JobID = Get-Random @@ -145,7 +145,6 @@ $OfficeList | ForEach-Object -parallel { Write-Progress @ServerProgress -Completed } -ThrottleLimit 5 -$PathToDB_Copy_Main = $USING:PathToDB $ServerProgress = @{ ID = 1 Activity = "Database Work"