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 = "" }