Skip to content
Crypt Weekly

The security desk for defenders

Tech News

Use New Microsoft CLI to Audit OneDrive Sync Settings

Crypt Weekly ·
Use New Microsoft CLI to Audit OneDrive Sync Settings
Illustration: Crypt Weekly

Microsoft released a command-line tool for IT teams to check OneDrive sync health and policy compliance across managed devices.

Key points

  • Microsoft introduced the OneDrive Sync Client CLI at the OneDrive + Copilot event.
  • The tool allows admins to view account status, versions, and Group Policy settings.
  • Output can be formatted in JSON for use with scripts and automation tools.

Microsoft released a new command-line interface for managing OneDrive sync. This tool helps IT administrators verify device health and policy compliance without manual checks.

What happened

Microsoft unveiled the OneDrive Sync Client Command Line Interface during the OneDrive + Copilot event, according to Cyber Security News. The tool is designed for teams managing large Microsoft 365 environments. Administrators can use the `odsync` command in PowerShell to retrieve detailed device information.

The CLI lists all OneDrive accounts on a device, including those with multiple profiles. It reports whether the sync client is running, its version, and installation method. Users can also inspect Folder Backup settings to see which local directories are syncing to the cloud.

A key feature is the ability to view applied Group Policy settings. This allows security teams to confirm that devices follow corporate rules. The tool provides status updates at the client, account, and backup levels. Admins can enable verbose output for deeper troubleshooting when issues arise.

The fix

  • Run the `odsync` command in PowerShell to check basic sync status.
  • Export results to JSON format for integration with reporting tools.
  • Use the tool to verify Group Policy settings on specific accounts.
  • Enable verbose output to troubleshoot sync errors on individual devices.

Why it matters

Understanding sync configuration is vital for data security. Teams usually need to verify that local files are stored in approved cloud locations. Drifting settings can expose sensitive information to unauthorized areas. Checking policy compliance ensures that devices follow security standards. Regular audits help prevent accidental data leaks. This guidance applies to any environment using cloud sync services.

What to do and how to stay safe: Microsoft

  • Review current Group Policy settings to ensure they match security requirements.
  • Monitor OneDrive sync logs for unexpected changes in folder backups.
  • Verify that only authorized accounts are configured on company devices.
  • Once the vendor provides an update, test the new CLI in a non-production environment.

Step-by-step guide: What is password policies and how they protect systems

General security guidance from the Crypt Weekly newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

What is the name of the new Microsoft OneDrive tool?

The tool is called the OneDrive Sync Client Command Line Interface.

Can the tool help with troubleshooting sync issues?

Yes, admins can switch on verbose output for deeper troubleshooting.

Does the tool support automation?

The CLI returns results in JSON format, making it easy to plug into scripts.

Sources

  1. Cyber Security News

You might also like