Onedrive For Business Silent Deployment, Configuration and Folder Redirection through Intune MDM for Windows 10

I’ve taken information from several sources and written a single “Do It All – Onedrive For Business configuration script” for the Windows 10 Modern Management (Intune MDM Azure AD Join) scenario.

The script can be deployed through Intune to your Windows 10 MDM clients and will do the following silently:

    • check latest O4B version and update to it
    • detect O4B configuration, start auto config
    • completely silent / invisible configuration with SSO
    • optionally, enable Files On Demand
    • optionally, redirect folders to Onedrive
    • optionally, copy old content

O4BClientAutoConfig + source code.

 

20
Leave a Reply

avatar
6 Comment threads
14 Thread replies
6 Followers
 
Most reacted comment
Hottest comment thread
8 Comment authors
Fab J. GeurtsAnders I. DahlRobert FolkersLars SkogshusJos Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
Fab J. Geurts
Guest
Fab J. Geurts

Deploying it now… thank you for this script. Thank you very much.

Robert Folkers
Guest
Robert Folkers

This is a huge timesaver, thanks a lot!
However I did find a bug when folder redirection is enabled. In line 417 the Cmdlet Join-folder is used, which is an unknown Cmdlet, so redirection fails. I replaced it with Join-Path and the script worked like expected, so many thanks for this!

Anders I. Dahl
Guest
Anders I. Dahl

Hi, thanks for posting such great scripts. It does do everything in the script but OneDrive fails to sign the user in “There was a problem signing you in”. Its pushing the script to a new computer with Windows 1803 if that means anything.

Lars Skogshus
Guest

Hello. What a great script.
Almost too good to be true. single sign on and mamming my OD4B, perfect.

But i am missing a small portion. And that is a way to map (link) all joined teams in the tenant.

I fond out a way to create the links but lack the possibility to list all teams that the user is member of. all still SSO of course..

Once again real great work

Niles
Guest
Niles

The script works but it logs the user off and back to the log in screen. How do I stop this?

Terry
Guest
Terry

I am not seeing what this does overall? Can you please explain the user experience and what functionality you get by doing this?