Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Upload Multiple Folders to same SharePoint Folders

$
0
0

I'm trying to upload folder contents to their respective folders in our SharePoint site. Is there a PowerShell script that will work with multiple folders and files? The only ones I've seen do it file by file, and I have to name the exact file I want to upload, instead of just taking everything in the folders, and putting them on the site. Here's my site hierarchy:

(list) Archives

(document folder) 01 January

(document folder) 02 February

(document folder) 03 March

(document folder) 04 April

Here's my folder structure on local machine:

c:\Archives\01 January\fa.pdf

c:\Archives\02 February\fa.pdf

c:\Archives\03 March\fa.pdf

c:\Archives\04 April\fa.pdf

I've attempted to run the Get-SPScrips.Copy-FiletoSP, but get an error stating you cannot call a method on a null-valued expression @ $web.Dispose(). If anyone could help, this would be great.


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>