Introduction
Compare-Object helps you find what is different between two sets of things, like lists or files. It shows what is only in one set or the other.
You want to see which files are different between two folders.
You need to find which names are in one list but not in another.
You want to check if two sets of data have any differences.
You want to compare configuration settings from two sources.
You want to quickly spot changes between two versions of a list.