Forum Discussion
OneDrive Wont Sync Correctly When Configured Through Intune
- 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" }
Did you manage to find a solution for this? I am currently experiencing a similar OneDrive issue with one user, despite all devices using the same autopilot profile they are the only one facing the issue.
- djk47463Jan 22, 2024Copper Contributor
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" }