261 votes11 comments · OneDrive on Windows » Desktop (Sync, Files On-Demand) · Flag idea as inappropriate… · Admin →
An error occurred while saving the commentPaul 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.