after successfully enabling automatic sign in and mapping a drive to OneDrive for business, I want to take it one step further in replacing on-premise fileshares:
I want to use folder redirection to make sure all user data is stored on the OneDrive, just like we make sure all user data is stored on the fileserver at the moment.
A direct redirection to the cloud is not possible. It IS possible to redirect to the local OneDrive folder from which data will get synced to the cloud.
There are some challenges in this regard:
- The user has to start the 'OneDrive for business' app to setup the sync and local folder.
- It is possible for the user to change the default location.
For use with folder redirection we need to make sure:
- Sync is enabled and there actually is a local folder...
- This folder needs to be in the same location for every user.
I thought it would be quite simple something like this:
onedrive.exe -sync c:\users\%username%\Onedrive
But no way )-:
Turns out the executable is called 'GROOVE.EXE' and resides in the Office directory.
Documentation is virtually non-existent, I have managed to determine the following command-line switches:
/clean
/clean all
/RunFolderSync
/OneNoteStub:
/TakeOffline:
/TrayOnly
Running the following command starts OneDrive for business silent and in the tray but the user has to right-click and use 'Sync A new library', not usable!
GROOVE.EXE /RunFolderSync /TrayOnly
The following invokes the 'Ready to sync?'-dialog but the user can change the location and has to click 'Sync Now'. Also not usable!
GROOVE.EXE" /TakeOffline: https://contosocom-my.sharepoint.com/personal/%SKYDRIVEID%/Documents
Would like to run the last command silent and settle for the default location!
I have been messing with prepopulating registry keys that are created but to no avail.
Anyone?