ImageStore use Sha1 hashing to detect same files.
To detect same files, first add all files being checked to database, then call Measure-ImageStoreFile or Measure-ImageStoreFiles to calculate Sha1 hash, finally call Compare-ImageStoreSameFiles to find all same files.
Same files will be grouped into Same File Groups based on Sha1 hashing result.
All files with same Sha1 hashing result will be placed in one Same File Group.
If a same file record is marked as ignored, it won't be treated as the point file is same as others in the same group. Uses this function when need to keep some files even they are same with others.
After detection, you could use Select-ImageStoreSameFile to return same files. This cmdlet powered with algorithm to deal with same files. See the cmdlet document for details. Combines the result with Remove-ImageStoreFile to delete the same files found.
- To check or modify Same File, you need to call Same File Cmdlets.