186 votes10 comments · OneDrive on Windows » Desktop (Sync, Files On-Demand) · Flag idea as inappropriate… · Admin →Ewan commented
I wish I could vote more for this.
We're migrating 12,000 desktops 65TB from NetApp (Documents redirection with offline cache) to OneDrive, and leveraging the NGSC OneDrive Sync client -- and there are lots of pain points. One of the biggest is no systematic way monitor the sync client status/health. We desperately need posh sync client module.
For other folks, this helped immensily -- Rodney Viana's Get-ODStatus powershell module which gives us the current status of the OneDrive sync
$syncStatus = Get-ODStatus -bypath $env:ONEDRIVE
### Possible values: Error, Shared, SharedSync, UpToDate, Syncing, ReadOnly, NotInstalled
There are some real positives doing this in late-2017 though:
- long file paths, writing 390 char long paths to C: OneDrive works. wow
- great support for crazy filenames - only problem we've seen are with leading and trailing spaces in filenames ($newName=([System.Web.HttpUtility]::UrlDecode($file.BaseName)).Trim())
- large files - 15GB max sync size is great
- and coming soon, SilentAccountConfig - heck yeah!
- no api client endpoints (posh)
- "cannot access file" crashes (we see when robocopying files into $env:onedrive folders), which explicitly unlink the computer (and which is a real pain when you enforce a standardized OD folder path when most of your users are still using the original default path)
Cheers all...Ewan supported this idea ·
89 votesEwan commented
2015? You sir are ahead of your time. 2017 and still no client side API endpoints for OneDrive Sync status/controls.
We're using Rodney Viana's Get-ODStatus - an extremely clever hack to monitor OneDrive sync status - he's sniffing the icon over to derive OneDrive client status. Rodney is a hero in my book for life!
Before we found this we were writing a flag file and watching the other side to see if the file sync to make assumptions about the client. Ack.
I'm waiting on baited breath for MSFT to release some OneDriveClient powershell modules - monitor status, get logs, basic controls (pause, restart, etc).
Anyway, posting this incase someone else stumbles into your prescient post and fine some use in Get-ODStatus.