![onedrive download script onedrive download script](https://freefontsdownloads.files.wordpress.com/2021/06/artlove-font-cover2.jpg)
One handy way to execute the below script in a bat file: This below script is a PowerShell script so name the file. Now it shows up in your File Explorer with the name you wanted Now when you double click on the shortcut it should open OneDrive and ask what folders you want to syncĪlso you can verify the name is correct Sales – Customers. I then copied this link into a shortcut file by right clicking anywhere on desktop>New>Shortcut: Next was adding the correct email address and the name I translates to %40 and. I then plugged those values into the formula Microsoft gave me: (Go here to find the encoded URL characters to use when creating your url) Below in bold is the content I pulled out of the Copy library ID link at the beginning of this post: Odopen://sync/?siteId=SiteID_HERE&webId=WebID_HERE&listId=ListID_HERE&userEmail=UserEmail_HERE&webUrl=WebURL_HERE &listTitle=Company Name&webTitle=Documents I did not like that so I added the following at the end of Microsoft’s link: Using this format did work however it defaulted the name of the directory to Company Name – Documents like so:
![onedrive download script onedrive download script](https://www.slashadmin.co.uk/wp-content/uploads/2019/07/Enable-Files-On-Demand-3.jpg)
Odopen://sync/?siteId=SiteID_HERE&webId=WebID_HERE&listId=ListID_HERE&userEmail=UserEmail_HERE&webUrl=WebURL_HERE (I did this in Firefox so it may look a little different for you). Click Cancel on this:Ĭlick Copy library ID and paste the info into Notepad. Go to the Library you want to Sync in SharePoint and click Sync.
Onedrive download script how to#
Read on to find out how to find the strings needed or click here to skip to the bottom for the script. I found a great script that once you set all the strings when a user executes it the document will start syncing. Also be sure to sync your OneDrive account by going to this link in your browser: