Upload complete folder structure with files to SharePoint Library – PNP PowerShell script
This PNP power shell script will upload all files, folders and files in sub folders located in a directory on your PC to a SharePoint Library. The script will create the library and set the site home page to this library
You will need to set the details in the script lines:
154 – $logfile (make sure the folder exists)
161 – $spBase
162 – $spSiteURL
194 – $authType, depending on the authentication method you choose define the authentication details in the lines 195 – 216
220 – $siteOwner
222 – $spSiteFolder
224 – $sourceFolder
|
1 |
