From b21460a8d93e28759b3e5361416988f97b36ebaf Mon Sep 17 00:00:00 2001 From: Kawa Date: Tue, 10 Mar 2026 13:08:04 +0100 Subject: [PATCH] Corrected an issue where the search for duplicate files also scanned and displayed different snapshots of the same file --- Sharepoint_ToolBox.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sharepoint_ToolBox.ps1 b/Sharepoint_ToolBox.ps1 index 525d25b..b25cfd9 100644 --- a/Sharepoint_ToolBox.ps1 +++ b/Sharepoint_ToolBox.ps1 @@ -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 = "" }