We have a powershell script running on our Exchange server (Exchange 2010/Win 2008 R2) which needs to query a SharePoint document library in SharePoint 2013 to find a file whose name can be different every day. For example,
Stats_2015_10_14_06_00_01.csv or Stats_2015_10_15_06_05_01.csv
This precludes me from being able to hardcode the file name and use the System.Net.WebClient method to download the file locally.
I also don't have the SharePoint module installed on the Exchange server and of course the admin there doesn't want to install it.
I tried converting the HTTPS based sharepoint site name to a UNC (\...) based name but that only seemed to work on my Windows 8 laptop...but failed on the Exchange server.
Any suggestions?