Corrected an issue where the search for duplicate files also scanned and displayed different snapshots of the same file

This commit is contained in:
2026-03-10 13:08:04 +01:00
parent 176398d886
commit b21460a8d9

View File

@@ -3976,6 +3976,8 @@ $btnScanDupes.Add_Click({
-TrimDuplicates $false
$hits = @($batch.ResultRows)
foreach ($h in $hits) {
# Ignore version history entries (SharePoint stores them under /_vti_history/)
if ($h.Path -match '/_vti_history/') { continue }
$fname = [System.IO.Path]::GetFileName($h.Path)
try { $crDay = ([DateTime]$h.Created).Date.ToString('yyyy-MM-dd') } catch { $crDay = "" }
try { $modDay = ([DateTime]$h.LastModifiedTime).Date.ToString('yyyy-MM-dd') } catch { $modDay = "" }