Forum Discussion
tcboeira
May 23, 2024Brass Contributor
PS script for uploading files to Sharepoint Online
Hello friends... This process of uploading files from some local storage to Sharepoint Online seems to be the simplest to be carried out via Powershell Script... However, a command/routine in whi...
TimLB
May 23, 2024Iron Contributor
Use the PnP PowerShell module. Instead of hard-coding the password in script, it can connect interactively where you provide the username/password when the script is running.
https://pnp.github.io/powershell/articles/connecting.html
Also, it has methods for interacting with Sites, Libraries, Lists, etc. so you'll be able to upload files with the same module.
https://pnp.github.io/powershell/articles/connecting.html
Also, it has methods for interacting with Sites, Libraries, Lists, etc. so you'll be able to upload files with the same module.