Microsoft OneDrive Silent Install (How-To Guide)

Microsoft OneDrive is a file hosting and synchronization service. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Microsoft OneDrive from the command line using the EXE installer.

How to Install Microsoft OneDrive Silently

Microsoft OneDrive Silent Install (EXE) – All Users

  1. Navigate to: https://www.microsoft.com/en-us/microsoft-365/onedrive/download
  2. Download the OneDriveSetup.exe to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command: OneDriveSetup.exe /silent /allusers
  6. Press Enter

After a few moments you should see the OneDrive shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Microsoft OneDrive
Vendor:Microsoft Corporation
Architecture:x86_x64
Installer Type:EXE
Silent Install Switch:OneDriveSetup.exe /silent /allusers
Silent Uninstall Switch:OneDriveSetup.exe /uninstall /allusers
Download Link:https://www.microsoft.com/en-us/microsoft-365/onedrive/download
PowerShell Script:https://silentinstallhq.com/microsoft-onedrive-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-microsoft-onedrive-powershell/

Microsoft OneDrive Silent Install (EXE) – Current User

  1. Navigate to: https://www.microsoft.com/en-us/microsoft-365/onedrive/download
  2. Download the OneDriveSetup.exe to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command: OneDriveSetup.exe /silent
  6. Press Enter

After a few moments you should see the OneDrive shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Microsoft OneDrive
Vendor:Microsoft Corporation
Architecture:x86_x64
Installer Type:EXE
Silent Install Switch:OneDriveSetup.exe /silent
Silent Uninstall Switch:"%LocalAppData%\Microsoft\OneDrive\xx.xx.xx.xx\OneDriveSetup.exe" /uninstall
Download Link:https://www.microsoft.com/en-us/microsoft-365/onedrive/download
PowerShell Script:https://silentinstallhq.com/microsoft-onedrive-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-microsoft-onedrive-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download link provided take you directly to the vendors website.


How to Uninstall Microsoft OneDrive Silently

Check out the following posts for a scripted solution:

Microsoft OneDrive Install and Uninstall (PowerShell)
Microsoft OneDrive Silent Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one the following commands:

Microsoft OneDrive Silent Uninstall (EXE) on 32-bit System

"%ProgramFiles%\Microsoft OneDrive\xx.xx.xx.xx\OneDriveSetup.exe" /uninstall /allusers

Microsoft OneDrive Silent Uninstall (EXE) on 64-bit System

"%ProgramFiles(x86)%\Microsoft OneDrive\xx.xx.xx.xx\OneDriveSetup.exe" /uninstall /allusers

Microsoft OneDrive Silent Uninstall (EXE) – User Profile

"%LocalAppData%\Microsoft\OneDrive\xx.xx.xx.xx\OneDriveSetup.exe" /uninstall

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.