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