224 votes10 comments · OneDrive on Windows » Desktop (Sync, Files On-Demand) · Flag idea as inappropriate… · Admin →Paul Martell-Mead commented
It is possible with Powershell to automate the setup of OneDriveForBusiness sync relationships from the client side. You need to create a grvopen:// URL for the library you want to sync then invoke the groove client using this URL. You can then automate the clicking of the Sync Now button using Auto-IT or similar. I have done this for a Onedrive for Business rollout. However the new client will stop supporting Sharepoint libraries and uses a new sync protocol so its a dead end bit of work.