Microsoft 365 Installation Problems

How to Silently Install OneDrive and Configure Sync Folders

Kushani NimanthikaKushani Nimanthika Nov 2, 2026 869 views

Question details

The user wants to deploy OneDrive silently using a command-line installer and automatically specify which folders should synchronize to the computer.

How to Silently Install OneDrive and Select Sync Folders
Product
OneDrive
Device & OS
Windows
Scenario
Automated deployment of the OneDrive client in a multi-user or enterprise environment.
Observed behavior
Seeking the correct command-line parameters for OneDriveSetup.exe to perform a silent install and define folder synchronization paths.
Before you start

Ensure you have administrative privileges on the target Windows machine and verify that your Microsoft 365 or Office license supports the specific administrative deployment features you intend to utilize.

Solution 1Recommended

Perform a Silent Installation via Command Line

Use the built-in command-line parameters of OneDriveSetup.exe to install the application without displaying the user interface.

OneDrive supports silent installations directly from the executable. This method bypasses the standard setup wizard, making it ideal for bulk deployments or automated scripts.

1
Open Command Prompt as Administrator

Click the Start menu, type 'cmd', right-click on 'Command Prompt', and select 'Run as administrator'.

2
Navigate to the Installer Directory

Use the 'cd' command to change your directory to the location where your downloaded OneDriveSetup.exe file is stored.

3
Execute the Silent Install Command

Type the command 'OneDriveSetup.exe /silent /allusers' and press Enter. This installs the OneDrive client silently for every user profile on the computer.

Perform a Silent Installation via Command Line
Per-Machine Installation: Using the /allusers switch installs OneDrive in the Program Files directory rather than the local AppData folder of the current user.
Free Microsoft Office alternative

Try WPS Office for Seamless Document Management

While managing OneDrive deployments, consider WPS Office as a robust, lightweight office suite. It offers reliable cloud-syncing capabilities, is highly compatible with Microsoft Office formats, and provides a familiar interface without the high licensing costs.

  1. 1. Download WPS Office: Visit the official WPS website to securely download the free installation package.
  2. 2. Install the Suite: Run the lightweight installer to quickly set up WPS Office on your computer without complicated configuration switches.
  3. 3. Sync Your Files: Log in to your WPS account to access built-in cloud storage and effortlessly sync your documents.
Fully compatible with Microsoft Word, Excel, and PowerPoint formatsBuilt-in cloud storage options for easy file syncing across all your devicesLightweight installation that runs smoothly on most operating systemsFree to use with a highly familiar user interface for a seamless transition
microsoft office alternative - wps office

Frequently Asked Questions

Can I specify which local folders to sync using OneDriveSetup.exe?

No, the OneDriveSetup.exe command does not support a parameter for selecting specific sync folders during installation. Synchronization preferences are managed through the client settings post-installation or via Windows Group Policy.

Does the silent install command work for Microsoft 365 Family accounts?

Yes, running 'OneDriveSetup.exe /silent' installs the OneDrive application itself. Once installed, users can sign in using either personal accounts (such as a Family license) or enterprise credentials.

How do I silently update an existing OneDrive installation?

OneDrive updates itself automatically in the background. However, if you need to force an update using a script, you can execute the latest installer with the command 'OneDriveSetup.exe /update'.