<!–
–>
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:
-
Open Start.
-
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;} } -
Type the following command to search the app and press Enter:
winget search OneDrive
-
Type the following command to install OneDrive on Windows 10 or Windows 11 using the app ID and press Enter:
winget install Microsoft.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:
-
Open Start.
-
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
-
(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
-
Type the following command to uninstall an app with winget and press Enter:
winget uninstall Microsoft.OneDrive
After you complete the steps, the sync client application will be removed from your computer.
Post a Comment