Forum Discussion
Avian 1
Jun 18, 2019Iron Contributor
Is there any way to get the sync status using PowerShell Script?
Hello Is there any way to get the sync status using PowerShell Script if user is doing syncing first time ? Avian
Avian 1
Jun 18, 2019Iron Contributor
adam deltinger I aleady saw this url and tried following script
Import-Module ".\OneDriveLib.dll"
Get-ODStatus -ByPath $env:OneDrive
Getting Syncing or OneDemandOruknown during syncing.
How to check in script that once status is UptoDate status, script should terminate especially when user is syncing first time and data size is large. I dont think running in infinite loop is good idea.
Please advise.
Avian
Jun 18, 2019
I think i read somewhere , this breaks if FOD is used though..
I guess writing some sort of IF statement depending on status would help!
What’s your usecase here?
I guess writing some sort of IF statement depending on status would help!
What’s your usecase here?