OneDrive File Issues

How to Use an Existing OneDrive Sync Folder with PowerShell

Adam DavisAdam Davis Nov 2, 2026 869 views

Question details

The user encounters a prompt to either use an existing folder or create a new one when synchronizing a Teams or SharePoint document library using the OneDrive odopen://sync command.

How to Use an Existing OneDrive Sync Folder with PowerShell
Product
OneDrive
Device & OS
not provided
Scenario
Synchronizing a Teams or SharePoint document library via PowerShell.
Observed behavior
The OneDrive odopen://sync command halts with a prompt asking the user to choose between using an existing folder or creating a new one.
Before you start

Before proceeding with the sync prompt, back up any important files in the existing local folder to an external drive or a different directory, as OneDrive will merge local contents with the cloud library.

Solution 1Recommended

Select 'Use this folder' to merge and continue syncing

Confirm the prompt to reuse the existing directory if the folder was previously synchronized with the exact same SharePoint or Teams library.

This prompt typically appears because a folder with the same name from a previous sync session already exists on your local drive. Choosing to use the existing folder is usually the quickest way to restore your sync connection without downloading everything again from scratch.

1
Review the local folder contents

Open File Explorer and navigate to the directory mentioned in the prompt. Verify that the files inside correspond to the Teams or SharePoint library you are trying to sync.

2
Confirm the sync prompt

Return to the OneDrive prompt triggered by your PowerShell script. Click the button labeled 'Use this folder' to instruct OneDrive to use the existing directory.

3
Allow files to merge

Leave the OneDrive application running in the background. It will automatically scan, compare, and merge the local files with the contents of your SharePoint library.

Select 'Use this folder' to merge and continue syncing
File Merging Process: When merging, if a local file and a cloud file have the same name but different content, OneDrive may keep both copies and append your computer's name to the duplicate to prevent data loss.
Free Microsoft Office alternative

View and Edit Your Synced SharePoint Files with WPS Office

While OneDrive handles your cloud syncing, WPS Office provides a lightweight, free, and highly compatible suite to edit all your synced Word, Excel, and PowerPoint documents without the heavy subscription fees.

  1. 1. Download and Install: Get the free WPS Office installer from the official website and complete the quick installation process.
  2. 2. Open Your Synced Folder: Navigate to your local OneDrive or SharePoint synced folder using File Explorer.
  3. 3. Edit Seamlessly: Double-click any document, spreadsheet, or presentation to edit it instantly in WPS Office, with all changes automatically syncing back to the cloud via OneDrive.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx) saved in your OneDrive.Lightweight design that opens large synced SharePoint files quickly without freezing.Familiar user interface makes transitioning from MS Office completely seamless.Built-in PDF toolkit for converting and editing documents directly from your synced folders.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive prompt me to use an existing folder?

This prompt usually appears if you have previously synced the exact same Teams or SharePoint library to your device. Even if you stopped syncing, the residual folder and its data often remain on your local drive.

Will I lose my local files if I choose 'Use this folder'?

No, OneDrive will not delete your local files. Instead, it merges the existing local content with the cloud content. However, backing up first is highly recommended to avoid accidental overwrites or duplicate conflicts during the merge.

What happens if I choose 'Create a new folder' instead?

OneDrive will create a brand-new directory for the sync, downloading all files fresh from SharePoint. The old local folder and its contents will remain unlinked and completely untouched on your hard drive.