Link to home
Start Free TrialLog in
Avatar of Sum Wum
Sum WumFlag for Denmark

asked on

Powershell - Copy file from network drive to Sharepoint library - Keep modified date

Hi,

Is it possible to copy a PDF-file from a Network share into a SharePoint library and keeping the modified date, with powershell? So Sharepoint shows the lastwritetime as the modified date?
Avatar of Jayaraja Jayaraman
Jayaraja Jayaraman
Flag of United States of America image

if its just one file then easy way would be , just upload the doc manually and update the modifed date using
$file.Item["Modified"] = datetime
item.Update();
Avatar of Sum Wum

ASKER

It's about 700 files, so that's a no go :)
ASKER CERTIFIED SOLUTION
Avatar of Jayaraja Jayaraman
Jayaraja Jayaraman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial