$a ="C:\TEMP\location1", "C:\TEMP\location2", "C:\TEMP\location3" $source = get-childitem "C:\TEMP\source" -Recurse $location1 = get-childitem $a[0] -Recurse $location2 = get-childitem $a[1] -Recurse $location3 = get-childitem $a[2] -Recurse Compare-Object $source $location1 -Property Name, Length, LastWriteTime #Compare-Object $source $location2 -Property Name, Length, LastWriteTime #Compare-Object $source $location3 -Property Name, Length, LastWriteTime
there has to be a better way to do this!