Information Required for Access:
- URL of the file (most important thing)
- User ID
To get the Server URL ( Path to file on SharePoint), you can go to SharePoint and then go to File and Right Click, Choose Properties and then you will see the Address (URL). That is the Server URL you need to use.
Accessing a File in Sharepoint 2016:
Step 1: Find the Proper URL
In Share Point 2015, the most important step is to construct correct link required for accessing resource successfully.
For example, here the general URL of resource file is:
But the URL which will be used to access the resource file will be:
Step 2: Download the File via PowerShell or SSIS
Method #1: Powershell
Copy and Paste the code below into Powershell (Remember to replace your File URL on the "$FileUrl" line):
Method #2: SSIS
Copy and paste the code below into SSIS (Remember to create a variable in SSIS with your specific URL that will be pulled in by the bolded section below):
With that, you should be able to access any Sharepoint file! Enjoy!