Powershell:
function Get-DuplicateFile
{
param
(
[Parameter (Mandatory = $true)]
[string]$Path,
[Parameter (Mandatory = $false, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
[string]$Filter = '*.*'
)
begin
{
}
process
{
if (Test-Path -Path $Path)
{
Get-ChildItem -Path $Path -Filter $Filter -Force -Recurse -File -ErrorAction SilentlyContinue |
Group-Object -Property @('Length') | Where-Object { $_.Count -gt 1 } |
ForEach-Object {
$_.Group | Get-FileHash | Group-Object -Property @('Hash') | Where-Object { $_.Count -gt 1 }
}
}
}
end
{
}
}
My Computer
System One
-
- OS
- Windows 11 Pro 25H2
- Computer type
- PC/Desktop
- Manufacturer/Model
- Intel NUC12WSHi7
- CPU
- 12th Gen Core i7-1260P
- Motherboard
- NUC12WSBi7
- Memory
- 64 GB Micron PC4-25600
- Graphics Card(s)
- Intel Iris Xe Graphics
- Sound Card
- on-board Realtek HD Audio
- Monitor(s) Displays
- Dell U3219Q
- Screen Resolution
- 3840 x 2160
- Hard Drives
- Samsung SSD 990 PRO 1TB
Crucial MX500 2 TB
- Antivirus
- Microsoft Defender






