Hi,
What specifically do you want to compare? If you just want to know if the two files are identical you can compare the hash values of the files.
(Get-FileHash -Path "D:\file1.xlsx").hash -eq (Get-FileHash -Path "D:\file2.xlsx").hash
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.