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

SUPERCEDED BY Ultimate folder redirection for Onedrive, Teams and Sharepoint

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.

Subscribe
Notify of
guest

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

20 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Fab J. Geurts
Fab J. Geurts
2 years ago

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

Robert Folkers
Robert Folkers
2 years ago

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
Anders I. Dahl
2 years ago

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
2 years ago

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
Niles
2 years ago

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

Terry
Terry
2 years ago

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