Does this help? get-item-id-of-the-last-modified-item-in-the-share.html
Transfer the last file modified to another folder with powershell script
Rafael Santos
1
Reputation point
Hi all,
Is possible to transfer the last file added to a SharePoint site for a local folder using a PowerShell script? I use the script below to transfer files but always transfer all files.
Script:
Result when I execute the script:
Any idea about how can I transfer just the last file added?
Best regards.