Download latest file from SharePoint Document Library
问题 Caveat: Cannot use Microsoft.SharePoint.Powershell Snap-in. I want create a PowerShell script that will search a SharePoint document library for the most recent file. https://sharepoint.url.com/site/Your_Site_Name/Sub_Site/SharedDocuments/ I am trying to incorporate the Get-ChildItem to search for the latest file. Here is an example: $fromfile = "https://sharepoint.url.com/site/Your_Site_Name/Sub_Site/SharedDocuments/File_name*" $tofile = "c:\temp\temp_file.xlsx" $latest = Get-ChildItem -Path