Deploying Onedrive for Business is straight forward .The command line switches are very simple :"OneDriveSetup.exe" /silent ,but when you create application in Configmgr, there are couple of things that you need to focus on like detection method and install behaviour.
If you search online ,how to deploy onedrive for business using Configmgr, you will get various post however the following method is what i have been using and it works fine . I would like to share the solution in simple steps.
Create application that you do normally but use use the following information to fill detection method ,User experience and install command line .
Install command line:"OneDriveSetup.exe" /silent
Detection method : The version that i deployed to users (user based collection) is 17.3.7076.1026 hence my detection method will look for 17.3.7076.1026. (There is already latest version available yet to deploy )
Onedrive for Business will store the installation files in user profile (C:\Users\eswar.koneti\AppData\Local\Microsoft\OneDrive)
Registry key from user profile for uninstall:
Setting Type: Registry
Date Type: String
Choose the OS that you want to install the application . Since this is user based deployment ,would recommended to limit this to workstation OS (windows 7,windows 8 and windows 10 but not to server operating system unless there is need to use onedrive on server OS)
On windows 7, there is no onedrive by default hence you need to install but on windows 10 ,there is onedrive comes with OS however you need to check if the installed onedrive is latest version or not ,if not ,then you can above method to install the latest version.
By installing the latest version (using above method) will remove the old version from user profile and install new version.
Before you use this solution on mass deployment ,deploy this to pilot users (few) and see how this works.
Deploy the application to user collection and you are good.
If you have any issues with this ,post via comment section.