Compare Two Directories
May 27, 2022
$refdirvar = Get-ChildItem -Recurse -path C:\test
$diffdirvar = Get-ChildItem -Recurse -path C:\test\home
Compare-Object -ReferenceObject $refdirvar -DifferenceObject $diffdirvar
*Note* Input object is the difference object.