PowerShell Compare two directories quickly

By Ramu Soft

This tip helps you to quickly find differences between two directories in poweshell.

Below powershell code helps you to identify the differences between two directory structures.

$directoryone = Get-ChildItem c:\directory1
$directorytwo = Get-ChildItem c:\directory2
Compare-object $directory1 $directory2

PowerShell Compare two directories quickly  (959 Views)