How to Silently Install OneDrive and Configure Sync Folders
Question details
The user wants to deploy OneDrive silently using a command-line installer and automatically specify which folders should synchronize to the computer.

- 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.
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.
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.
Click the Start menu, type 'cmd', right-click on 'Command Prompt', and select 'Run as administrator'.
Use the 'cd' command to change your directory to the location where your downloaded OneDriveSetup.exe file is stored.
Type the command 'OneDriveSetup.exe /silent /allusers' and press Enter. This installs the OneDrive client silently for every user profile on the computer.

Configure Sync Folders using Group Policy
Since folder selection cannot be configured via a simple installation switch, use Windows Group Policy to manage synced locations.
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. Download WPS Office: Visit the official WPS website to securely download the free installation package.
- 2. Install the Suite: Run the lightweight installer to quickly set up WPS Office on your computer without complicated configuration switches.
- 3. Sync Your Files: Log in to your WPS account to access built-in cloud storage and effortlessly sync your documents.

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'.




