I am new to Sharepoint and would like to write a PowerShell script to transfer folders from a local folder to a document library (Sharepoint 2016).
May I know if it's possible, and the way to do it?
Thanks.
As per my knowledge, only files are supported to be uploaded using PowerShell but folders are not. To upload files in a local folder to SharePoint library, see this: Powershell Uploading complete folder hierarchy to document Library. Alternatively, some 3rd party migration tools may support moving folders from local to SharePoint library.