====== 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 ====
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
===== More Extreme Removal =====
==== Terminate OneDrive at login ====
taskkill /f /im OneDrive.exe
taskkill /f /I'm OneDriveSetup.exe
==== Remove OneDrive Software====
* 32 bit
%SystemRoot%\System32\OneDriveSetup.exe /uninstall
* or 64 bit
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall