Pause Syncing with PowerShell
I would like a way to pause and unpause OneDrive syncing in PowerShell. This would be handy in PowerShell scripts that manipulate files. Sometimes the files get locked if OneDrive is currently syncing them. I would like to be able to script the pause, make my file changes, then unpause when my script is finished.
James redmore commented
Or any powershell endpoints for that matter. No good way to proactively monitor user workstations to ensure sync is running and healthy.