From ab692c963259ac7f6fa616cfa7553140c4cadb94 Mon Sep 17 00:00:00 2001 From: eeckert Date: Fri, 15 Sep 2023 10:49:03 -0600 Subject: [PATCH] bugfix --- Get-ProjectFolders.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Get-ProjectFolders.ps1 b/Get-ProjectFolders.ps1 index e14c01b..b506e6a 100644 --- a/Get-ProjectFolders.ps1 +++ b/Get-ProjectFolders.ps1 @@ -171,7 +171,7 @@ Invoke-SqliteQuery -DataSource $PathToDB -InputFile $SQLFile_to_Run $DBConnect = New-SqliteConnection -DataSource $PathToDB foreach ($office in $OfficeList) { - $OfficeServer = $office.Substring(1, 4) -replace (':|\\', '') + $OfficeServer = $office.Name $Query = "select * from OfficeDuplicates where Server = '$OfficeServer';" $sql_result = Invoke-SqliteQuery -DataSource $PathToDB -Query $Query