Jos Lieben wrote a really complex script for automating Onedrive For Business provisioning.
We have tested it and it works great. It has the following features.
We have tested this script and it really works. Here You can download the newest version.
Also check the other scripts Jos has wrote.