Forum Discussion
djk47463
Feb 23, 2023Copper Contributor
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...
- 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" }
caoimhe_S
Jan 22, 2024Copper Contributor
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" }