Share via

Onedrive Sync Powershell Script

Anonymous
2021-12-09T17:26:56+00:00

We are syncing users teams document libraries via a powershell script using the command : Start-Process "odopen://sync/?siteId=$($t.SiteID)&webId=$($t.webid)&listId=$($t.ListID)&userEmail=$upn&webUrl=$($t.Weburl)&webtitle=$($t.Webtitle)" After running the command there is sometimes a popup that the folder exists and to use that folder or create new folder. Is there a way to set to always use this folder via powershell?

Microsoft 365 and Office | OneDrive | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2021-12-10T09:48:50+00:00

Hi Mikehall1068,

The prompt you mentioned usually appears when we are already syncing the folder or has synced the folder in the past and then stopped syncing. If this happens, the mentioned folder already exists in the selected location.

To work around this, we have two choices, either create a new folder on PC or click Use this folder. Selecting Use this folder will may sync **** the **** files (if any) that are already in that folder along with the files/folders stored in SharePoint.

Regards,

Neha

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2021-12-11T10:10:30+00:00

    Hi Mikehall1068,

    Did you check the above reply? If you still need help, please update us when you have time.

    Regards,

    Neha

    Was this answer helpful?

    0 comments No comments