How to Use an Existing OneDrive Sync Folder with PowerShell
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.

- 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 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.
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.
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.
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.
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.

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. Download and Install: Get the free WPS Office installer from the official website and complete the quick installation process.
- 2. Open Your Synced Folder: Navigate to your local OneDrive or SharePoint synced folder using File Explorer.
- 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.

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.




