How to install or uninstall OneDrive with WinGet command on Windows 11, 10

<!–

–>

On Windows 10 (or Windows 11), you can use the Windows Package Manager (WinGet) command to install or uninstall the OneDrive sync client application. Although OneDrive comes installed by default on every installation of Windows, sometimes, you may need to reinstall the application because it is not working correctly. Or you may need to remove it because you don’t use it. 

Whatever the reason it might be, on Windows, in addition to downloading and installing the client manually from the Microsoft website, you can also use the WinGet tool to install and uninstall the app.

WinGet is a command-line tool designed to make it easier to automate the process of searching, downloading, installing, upgrading, and configuration applications on your laptop or desktop computer. The tool was thought out for developers, but anyone can install apps, such as OneDrive, Microsoft Teams, and VirtualBox.

In this guide, you will learn how to add or remove the OneDrive application on either Windows 10 or Windows 11.

Install OneDrive with WinGet command

To install the OneDrive client with the WinGet command:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

    .Windows_Software_Technology-Big-343 { display:inline-block; width: 300px; height: 600px; } @media(min-width: 500px) { .Windows_Software_Technology-Big-343 { width: 300px; height: 600px;} }
  3. Type the following command to search the app and press Enter:

    winget search OneDrive
  4. Type the following command to install OneDrive on Windows 10 or Windows 11 using the app ID and press Enter:

    winget install Microsoft.OneDrive
    WinGet install OneDrive
    WinGet install OneDrive

Once you complete the steps, the Windows Package Manager will download and install the app automatically.

Uninstall OneDrive with WinGet command

To uninstall OneDrive with the WinGet command, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. (Optional) Type the following command to view a list of the app you can uninstall with the Windows Package Manager and press Enter:

    winget uninstall
  4. Type the following command to uninstall an app with winget and press Enter:

    winget uninstall Microsoft.OneDrive

    WinGet uninstall OneDrive

After you complete the steps, the sync client application will be removed from your computer.

Post a Comment