
Getting them connected was a bit of a strugle, however i’m now trying to get them automatically disconnected. The result string will look something like below (listTitle is the display name for the library in Explorer, you can change it if you want to avoid duplicate names) “odopen://sync/?siteId=&webId=&listId=&listTitle=&userEmail=&webUrl=”įinally, replace spaces with %20, – (minus) with %2D and with %40 in your string, then write each string line by line to a textfile as ps1, and let it execute (use psrun.exe to get it run silently) Using New-Object ($siteUrl) you can obtain SiteId, WebId, ListId and ListTitle Then you need to get all the items required for formatting a string for each site Url. The sourcecode can’t be made public unfortunately, since there’s a lot more to it, however I can explain the way it functions.įirst of all, you need to configure the OneDrive Client through the registry (“HKCU\SOFTWARE\Microsoft\OneDrive” set “EnableADAL” to 1) I’ve got a working solution for this in python.


Start "odopen://sync/?siteId=$siteid&webId=$webid&listId=$listid&userEmail=$upn&webUrl=$URL&webtitle=$webtitle&listtitle=$listtitle" As a result, the OneDrive for Business Sync Client will only support Office 365 accounts. But you can easily stop personal OneDrive account synching via the Group Policy Editor. If the registry value was set as part of a Group Policy Object, the policy must be removed. $path = "C:\Users\$($env:username)\Lime Networks BV\Lime Networks - $($listtitle)" To clarify, users are allowed to sync their personal OneDrive accounts by default. In order to sync with OneDrive for work or school, the DisableFileSyncNGSC key must be removed or the DWORD value must be changed to 0 (zero). $strFilter = “(&(objectCategory=User)(SAMAccountName=$Env:USERNAME))” $Version = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ReleaseID | Select-Object ReleaseID #Sleep is required, if the same script runs at the same time it'll mess up the configuration. Its still in a pretty unfinished state, but it might help you if you are currently struggling with this: The only sad part about it is that my pretty cool logon script will become useless fairly soon, anyway I’m sharing this to everyone. Combined with Files on Demands most users won’t even know the difference. Automapping sites will be a great benefit for migrations where users are saying goodbye to the good old file system, and hello to SharePoint online.
Onedrive sync client registry windows#
If we delete a file from OD4B sync client via 'Delete' button, it also be showed in OD4B Recycle Bin and Windows Recycle Bin. If youre currently syncing sites and libraries using the previous OneDrive for Business sync client (Groove.exe), then this preview automatically takes over syncing those sites and libraries.

Follow these steps on each computer where you want to preview the feature. Previously we made a windows app using c# which can map Sharepoint 2013 site's document libraries in the user machine and from there user can manipulate the data as per their needs etc.Microsoft recently announced that the OneDrive for business client will support automatically mapping SharePoint sites – Which is something I’ve been working on to script for some time now. Per my test, After we sync OneDrive for Business library to our client, when deleting a file from SharePoint OneDrive for Business(OD4B) web, the file will be showed in OD4B Recycle Bin and Windows Recycle Bin. Enable SharePoint Online sync for Windows. But by default Microsoft OneDrive is taking control over the syncing of our SharePoint 2013 sites. Sync client) & 2) OneDrive for Business (old one). After updating office application we are getting two onedrives - 1) Microsoft OneDrive (new Use the Microsoft OneDrive sync client (in systray) to see any sync errors and refer to the following FAQ item to attempt to resolve your sync errors.
Onedrive sync client registry update#
With the recent Office 365 update which introduced the new OneDrive sync client, I am facing problem to call it progrmmatically for syncing a SharePoint 2013 site.
