PowerShell script: Import Files from local to Document Library list

You are investing
in SharePoint Server 2013 and you want to bring all files in a folder from
local to SharePoint list. This script helps you automatically create a new
Document Library list and import all files from a local folder to a Document
Library list.

Here is the
file code: CreateDocumentLibrary.ps1

How does
it work?

Example: Your server has a lot of files in C:Temp folder
that you need to import to SharePoint list.

Step 1:  Click here to download: CreateDocumentLibrary.ps1

Run Create
DocumentLibrary.ps1file with

Step 2:
Input your chosen parameters as pictured below and click Enter.

Step 3: The
PowerShell script will show the results while creating the lists.

Step 4: Go to your site to see the final results.

Muhammad Piracha
re: PowerShell script: Import Files from local to Document Library list
on Tue, Dec 22, 2015, 9:11 AM

Thank you Chau for a handy tip. There is also the “Open with Explorer” option available from the Library Ribbon if you have the Office desktop version installed on the computer. The library will show up as a folder in Windows Explorer. It is very easy to drag and drop files to the library. This is a good option for someone who is uncomfortable with Power Shell.

SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365


Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.

Calendar Plus

Chart Plus

Knowledge Base

Project Management Central

Simple List Search


On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2013, 2016, 2019 – Classic Pages Only


Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.

Calendar Plus

Data Viewer

Password Change

Password Expiration

Password Reset


Our team of Microsoft 365 experts help you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Streamline Your Department

We Have What You Need

Bamboo Solutions



Webinar & Events


Culture & Diversity



Bamboo Solutions



Bamboo Installer


Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!