I need to compare the content of files on 2 different machines. There are around 50 files in the folder on each PC. So far I have done this:
compare (gc \\PC1\d$\Data\Config\*) (gc \\PC2\d$\Data\Config\*) | Out-GridView
and it works fine, but in that way I can't see in which file the difference exist. So I need the filename in the result.