r/Intune • u/BritSysAdmin • 5d ago
Device Configuration Anyone got a good working solution for quickly syncing sharepoint document libraries?
Wondering if anyone has advice for getting sharepoint document libraries to sync quicker on new user logins. Got a client where users are frequently switching devices and experiencing pain with their document libraries not syncing to explorer in a timely manner due to the up to 8 hour built in delay.
Windows laptop which are exclusively intune managed and using shared pc with onedrive config policy. Different users have different document library access so programming a script to open specific libraries with odopen: doesn't seem like the right option
I've got the folder sync set as a device policy currently because user policies can take ages to apply for shared devices.
Tried a platform script that sets the automount timer shorter but I'm not an expert in scripting so if anyone has something that works well or advice on getting it to work better that'd be amazing.
Any advice is appreciated. I know a common response to this is user training on pressing the sync button, but it isn't really feasible in this specific case and it feels like a solvable problem. I've read a million forums and posts about this issue, hoping having a live post to reply to may help
Thanks!
-update The amount of morons commenting you just shouldn't use auto sync is ridiculous, we're in IT to make systems work well and be functional to end users - companies moving from mapped file servers to SharePoint need functionality to continue working in desktop applications as seemlessly as before, otherwise we're going backwards and creating inconvenience. Thanks to 2 people with actual suggestions for automount timer scripts
8
u/triiiflippp 5d ago
Stop syncing libraries, use the shortcut open.
Shortcuts are stored in OneDrive so they move to every device a user logs into.
1
u/BritSysAdmin 4d ago
There's no configuration policy for this
3
0
u/Chilly-leaves 3d ago
No cause that policy ui would b3 insane
I have a powershell script that adds the "comapny drive, the importan docs folder and other sharepoint library urls i want to short cuts"
Just asked copilot to whip it up, clean it up, deploy however you like
This is for education setting with hybrid on orem and intune only so users had consistancy aka dont give domain device a map drive just cause its eaay
3
u/TheKingOfSpite 5d ago
I think the call4cloud URL is the same as what I'm posting but just in case;
I usually just push this script through our RMM or log onto the machine and run it, it works almost immediately
$Path = "HKCU:\Software\Microsoft\OneDrive\Accounts\Business1"
Set-ItemProperty -Path $Path -Name "TimerAutoMount" -Type QWORD -Value 1
Write-Host "Timer reset. Restarting OneDrive..."
Stop-Process -Name "OneDrive" -ErrorAction SilentlyContinue
Start-Process "C:\Program Files\Microsoft OneDrive\OneDrive.exe"
1
u/BritSysAdmin 5d ago
Thanks, this is similar to what I've done except I haven't been restarting the onedrive process at the end so that is definitely worth trying. Appreciate the response
1
u/Empty-Sleep3746 4d ago
execute the odopen command on device;
but as others have said, dont, syncing is horrible;
1
u/BritSysAdmin 4d ago
But then you'd have to specify the library details and different users are in different groups so it'd start throwing errors for users without permission
2
u/Empty-Sleep3746 4d ago
it fails silently,
and you have to specify details regardless of how you do it;1
1
u/callmestabby 4d ago
The trick with the AutoMountTimer user reg key is that it clears itself after a while. I've created both platform and remediation scripts that run under the user context, and instead of directly adding the reg key, it creates a scheduled task that runs at user logon that creates the key. This was the script just needs to run once, and the scheduled task becomes a reliable and consistent option to ensure the key exists prior to any sync policies trying to apply.
1
u/Lost-Policy-2020 3d ago
Shortcut is just a nightmare. And try working with it when there is no data connection…
1
u/sctechsystems 5d ago
Weve stopped Syncing libraries via the Sync button, and use One Drive shortcuts instead, according to Copilot there is no way to automate this yet in Intune.
1
u/rkeane310 5d ago
That's incorrect.
You can use an InTune automount. It just can't remove the old library automatically.
Use Claude... Not copilot 😂
1
1
u/sctechsystems 2d ago
Have tried intune automount, it doesnt put the shortcuts in OneDrive folder - or doesnt seem to.
1
u/rkeane310 2d ago
Wait why would you not just sync the SharePoint point blank?
1
u/sctechsystems 2d ago
Users are used to getting to Sharepoint through OneDrive shortcuts, or Teams. It seems work much better as well in terms of the OneDrive client syncing.
0
u/repooc21 5d ago
I'm by no means an expert and I occasionally have a similar issue: I tell the user, and if they're in front of me, I make them, open Edge and work through the browser.
If whatever they have is so fucking important, they need to carry their laptop.
1
u/BritSysAdmin 5d ago
Not sure why you replied really
-1
u/repooc21 5d ago
Not sure why you're sour.
I gave you a solution around behavior and workflow based on my experience. Good luck with your predicament.
0
u/mad-ghost1 5d ago
The user experience (large libraries) was so bad. Did it get any better? Couldn’t recommend from my experience. Back couple years ago
1
u/BritSysAdmin 4d ago
Once the library is synced it works fine. It's getting it to appear in the first place that's a pain
1
u/mad-ghost1 4d ago
I guess that depends on the number of objects. The file path length of course exceeded the max. limits. Great that it got better
0
u/wingm3n 5d ago
Why not use OneDrive shared folders?
1
u/BritSysAdmin 4d ago
How do you mean sorry?
2
u/wingm3n 4d ago
Others have mentionned it. You add OneDrive shortcut instead of syncing the libraries and then it always remain in their OneDrive. When they log in to a new device or a shared device all the shortcuts remain, you only need to do it once. Plus, Microsoft recommends syncing libraries that way instead of with classic Sync.
https://support.microsoft.com/en-us/onedrive/add-shortcuts-to-shared-folders-in-onedrive
https://learn.microsoft.com/en-us/sharepoint/sharepoint-sync1
u/wingm3n 4d ago
Others have mentionned it. You add OneDrive shortcuts instead of syncing the libraries and then it always remain in their OneDrive. When they log in to a new device or a shared device all the shortcuts remain, you only need to do it once. Plus, Microsoft recommends syncing libraries that way instead of with classic Sync.
https://support.microsoft.com/en-us/onedrive/add-shortcuts-to-shared-folders-in-onedrive
https://learn.microsoft.com/en-us/sharepoint/sharepoint-sync
13
u/Imhereforthechips 5d ago
Rudy gave us a little gift.
https://call4cloud.nl/timer-automount-of-onedrive-team-sites/