Author Posts

September 2, 2015 at 4:21 am


Is there a way I can create a list of files that are on D: but not in F:, are in F:\ but not in D and have changed in F: since a particular date?
Am trying to use GCI and compare-object but am getting mixed up with the options

September 2, 2015 at 5:44 am

This is what I currently have:

$srce = Get-ChildItem -Path F:\HSTVDATA\HSTV_Share -Recurse | Select-Object -Property FullName, Length, LastWriteTime
$dest = Get-ChildItem -Path D:\HSTVDATA\HSTV_Share -Recurse | Select-Object -Property FullName, Length, LastWriteTime

Compare-Object $srce $dest -Property FullName, Length, LastWriteTime | Format-Table- Autosize | Out-String -Width 4096 | Out-File C:\Tony\Compare.txt