Skip to content

Instantly share code, notes, and snippets.

@okaufmann
Last active October 29, 2019 11:00
Show Gist options
  • Save okaufmann/b3c93f42c9ce7816e36f0e80a40c1706 to your computer and use it in GitHub Desktop.
Save okaufmann/b3c93f42c9ce7816e36f0e80a40c1706 to your computer and use it in GitHub Desktop.
Remove fkng one drive!

Remove OneDrive from Windows 10

Source: https://techjourney.net/disable-or-uninstall-onedrive-completely-in-windows-10/

Group Policies

Press Win + R keyboard accelerator to open Run dialog box. Type GPedit.msc and hit Enter or OK to open Local Group Policy Editor. Navigate to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> OneDrive. In the right pane, double click on policy named Prevent the usage of OneDrive for file storage. Select the Enabled radio button.

Image of Yaktocat

Kill and remove

Download and run the remove-onedrive.cmd file

@echo off
rem Source: https://techjourney.net/disable-or-uninstall-onedrive-completely-in-windows-10/
taskkill /f /im OneDrive.exe
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
rd "%UserProfile%\OneDrive" /Q /S
rd "%LocalAppData%\Microsoft\OneDrive" /Q /S
rd "%ProgramData%\Microsoft OneDrive" /Q /S
rd "C:\OneDriveTemp" /Q /S
REG Delete "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
REG Delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment