check onedrive sync status

Andy Doe
Andy Doe used Ask the Experts™
on
Hi everyone.

just started at a new job at an MSP and as part of my role we are checking if users have auto-save turned on in onedrive so the desktop, documents and other important folders are synced

currently this is a long drawn out process as it takes a long time to call each user connect to their machine etc etc.

is there some way we can automate this task so we could get connected to say one machine and run a powershell script to probe each PC on the network some customers have a domain some do not

basically we need to find out

is auto-save enabled
is it working
when was the last sync.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Rated Freelancer on MS Technologies
Awarded 2018
Distinguished Expert 2018
Commented:
As you should know by now, there are two onedrives.

Onedrive for business (ofB) and Onedrive

https://blogs.msdn.microsoft.com/rodneyviana/2017/06/06/powershell-cmdlet-to-check-onedrive-for-business-or-onedrive-personal-status/

They talked about Status, but I tried to import the module, and it doesn't' work
so probably it should be recompiled and then used on your computer.

https://github.com/rodneyviana/ODSyncService

----

Another approach would be to create an app registration, and try https://www.powershellgallery.com/packages/OneDrive/1.1.3
but It not worth the pain.

If it's just Onedrive for business:
https://docs.microsoft.com/en-us/onedrive/list-onedrive-urls

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial