Question: I have created an image for my freshly installed Windows 10 last year,
I want to format my laptop now.

I am trying to copy this image (11GB) to an external harddisk so i can use it to resotre windows.

The problem is that when I try to copy the image folder I get "calculating" for an hour then nothing happens

Any idea how to resolve this?

Answer: 
I suggest a PowerShell script which:

* finds all files with a trailing `(1)` to the BaseName recursivly for a given
starting folder.
* Does a dir without the number to find all possible dupes and then creates a hash to only delete exact copies, asking for confirmation.
* If files are changed in the meantime these are no more exact copies and fall through.

Change the `Push-Location` to fit your starting folder, save file with the extension `.ps1` and execute it.

```
## Q:\Test\2017\07\15\SU_1230033.ps1
## inspired by http://n3wjack.net/2015/04/06/find-and-delete-duplicate-files-with-just-powershell/

Push-Location "D:\"
Get-ChildItem "* (1).*" -Recurse -File | ForEach-Object {
    $BaseFile = (Join-Path $_.Directory ($_.BaseName -replace ' ?\(\d+\)'))+"*$($_.Extension)"
    Get-ChildItem $BaseFile | Get-FileHash | Group-Object Hash |  Where { $_.Count -gt 1 } | 
        ForEach-Object {$_.Group | Select-Object -Skip 1 } | Remove-Item -Confirm
}
PopD

```

To get just a dir listing of the files use this reduced script:

```
Push-Location "D:\"
Get-ChildItem "* (1).*" -Recurse -File | ForEach-Object {
    $BaseFile = (Join-Path $_.Directory ($_.BaseName -replace ' ?\(\d+\)'))+"*$($_.Extension)"
    Get-ChildItem $BaseFile 
}
PopD

```
```
ROBOCOPY SOURCE_PATH TARGET_PATH *(2)* /S /W:2 /R:2 /256 /MOVE

```

In a DOS box with admin privileges, issue this, and it will move all the files (and in subdirectories) with any name and file extension that contains (2) in it and then you could just delete the target directory.

To learn more: Open a DOS command window and type: `robocopy /?`