Forum Discussion

djk47463's avatar
djk47463
Copper Contributor
Feb 23, 2023
Solved

OneDrive Wont Sync Correctly When Configured Through Intune

I have recently converted my org over to MDM through Intune. We wanted to make things as easy as possible, so we wiped all the machines with a fresh start and setup OneDrive to auto sign in and silen...
  • djk47463's avatar
    djk47463
    Jan 22, 2024

    caoimhe_S, for reasons I don't understand, resetting OneDrive via PowerShell resolved this issue. We deployed a proactive remediation to ensure everyone's computer reset OneDrive once after initial boot. The code below just resets OneDrive depending on the install location. Hope this helps.

     

    try {
        & $env:LOCALAPPDATA"\Microsoft\OneDrive\onedrive.exe" /reset
    }
    catch {
        Write-Output "App Data Fail"
    }
    
    try {
        & "C:\Program Files\Microsoft OneDrive\onedrive.exe" /reset
    }
    catch {
        Write-Output "Program Files Fail"
    }
    
    try {
        & ":\Program Files (x86)\Microsoft OneDrive\onedrive.exe" /reset
    }
    
    catch {
        Write-Output "Program Files x86 Fail"
    }

     

Resources