How to Automate Excel File Transfers from a Network Drive to SharePoint
Question details
The user needs to automate the process of moving or exporting an Excel file stored on a local network drive directly to a SharePoint folder or SharePoint list.

- Product
- Microsoft Excel and SharePoint
- Device & OS
- Windows
- Scenario
- Setting up an automated workflow to regularly transfer updated Excel files from a local network environment into a centralized SharePoint site without manual intervention.
- Observed behavior
- Windows Task Scheduler lacks a native feature or connector to upload files directly to SharePoint, requiring alternative methods like scripts, Power Automate, or SharePoint's import features.
Ensure you have the necessary write permissions for the destination SharePoint site and verify that your Excel data is formatted as a Table (Ctrl+T) if you intend to import it as a list.
Use Power Automate to Sync Network Files to SharePoint
Power Automate is the most robust and secure method to automate file transfers from an on-premises network drive to SharePoint using a data gateway.
Since Windows Task Scheduler cannot natively upload to SharePoint, Microsoft's Power Automate (formerly Microsoft Flow) is the recommended alternative. It requires installing the On-premises data gateway to bridge your local network and the Microsoft cloud.
Download and install the Microsoft On-premises data gateway on a computer that has continuous access to the target network drive.
Log into Power Automate, click 'Create', and select 'Automated cloud flow' or 'Scheduled cloud flow' depending on how often you want the transfer to occur.
Add the 'File System' connector. Choose the trigger 'When a file is created or modified', and configure the connection using your On-premises data gateway credentials and network path.
Add a new step, search for 'SharePoint', and select 'Create file'. Map the 'File Name' and 'File Content' dynamic fields from the File System trigger to the destination SharePoint folder path.

Import Excel Data Directly into a SharePoint List
If you only need to expose the spreadsheet's data in SharePoint rather than preserving the actual .xlsx file, converting the Excel file into a SharePoint list is highly effective.
Use a Scheduled PowerShell Script
For users comfortable with scripting, a PowerShell script can be executed by Windows Task Scheduler to push files to SharePoint.
Discover WPS Office for Seamless Spreadsheet Management
If you frequently work with spreadsheets and need a reliable, lightweight, and cost-effective solution, WPS Office is an exceptional alternative to Microsoft Office. It offers a highly familiar interface, allowing you to create, edit, and format data seamlessly before uploading or syncing to your cloud platforms.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installer file and follow the quick on-screen setup instructions.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and instantly open your existing .xlsx or .csv files without any format conversion.

Frequently Asked Questions
Can Windows Task Scheduler directly upload files to SharePoint?
No, Windows Task Scheduler does not have a native connector or built-in function to authenticate and upload files directly to SharePoint. You must use an intermediary tool like a PowerShell script, Power Automate, or OneDrive sync client to handle the actual upload.
Why are some Excel columns not importing correctly into a SharePoint list?
SharePoint lists have specific, rigid column types (e.g., Choice, Date/Time, Person). If the data in your Excel column is mixed or uses a format SharePoint doesn't natively recognize, the import may fail or miscategorize the data. You will need to manually configure these unsupported columns during the import mapping process.
Do I need to keep the original Excel file if I create a SharePoint list?
It depends on your workflow. Once the data is imported into a SharePoint list, the list operates independently. If you update the list, the original Excel file is not automatically updated. If you need to maintain complex formulas or charts, it is better to upload the actual .xlsx document to a SharePoint Document Library instead of creating a list.




