Date Changes on Copy out, each time it is run

Earlier, the code shown below would faithfully copy out the files in a given folder with a given search spec.

Then something changed... and the date-time on the files now increment to the time the PWPS script is run, rather than showing the date-time as shown in PW.

Each time it runs, the date-time updates to current, it does not skip files as "up-to-date".

$result            = Open-PWConnection -DatasourceName $Datasource -SSO -Verbose
$files             = get-pwdocumentsbysearch -FolderPath "$ProjectWiseFolder" -JustThisFolder -Filename "$FilenameString"
$result            = $files | CheckOut-PWDocuments -NoReferences -RemoveCopies -Verbose -CopyOut -ExportFolder "$ServerFolder"


  • Update... The problem is not the PWPS Module, the problem is how ProjectWise shows dates...

    If you "Move" a file from folder to folder in PW, it is apparently a copy with current date-time put on the file, but the dates in PW are not updated to reflect the same date-time, so the disconnect is then what you see in PW and what you see in the Target Folder do not match.

    IMHO this is a bug in PW, it should make the copy of the file have the same date, or change the PW Date-Time to reflect the new proper value on the actual files.