Disable OneDrive (Win10)
Using Group Policy
Using MMC
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.
Click or tap OK when done.
Using Regedit
- disable_onedrive64.reg
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
- disable_onedrive32.reg
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
More Extreme Removal
Terminate OneDrive at login
- killonedrive.cmd
taskkill /f /im OneDrive.exe
taskkill /f /I'm OneDriveSetup.exe
Remove OneDrive Software
%SystemRoot%\System32\OneDriveSetup.exe /uninstall
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall