Comparing objects in Windows Powershell
We can use below command to compare any 2 objects.
Compare-Object
Remember that “diff” and “compare” are aliases for this command.
Here are some examples on this command.
Below image shows how we can use “Compare-Object” command to view the differences between 2 files.
Recent Comments