Skip to main content

Get OneDrive Sync Status

Overview​

NinjaRMM wrapper for the agnostic ODSyncUtil script that retrieves the OneDrive Sync Status and Quota Information. This data is then stored in a custom field cPVAL OneDrive Sync Status.

Sample Run​

Play Button > Run Automation > Script

Search and select Get OneDrive Sync Status
Image1

Set the required arguments and click the Run button to run the script.

  • Run As: System
  • Preset Parameter: <Leave it Blank>

Image2

Run Automation: Yes
Image1

Dependencies​

Automation Setup/Import​

Automation Configuration

Output​

  • Activity Details
  • Custom Field

Changelog​

2026-06-08​

  • Updated powershell to update custom field "cPVAL OneDrive Sync Status Audit" if OneDrive process is not running.

2026-04-08​

  • Added cPVAL OneDrive Sync Status Audit custom field so that it can be used to store the Sync status of OneDrive, which can be further used to apply a filter to audit failed sync status machines.

2026-02-19​

  • Initial version of the document