4) How to disable or remove OneDrive
There is a registry setting you can manipulate to disable OneDrive. At this time, I'm not going to post it, as it's a bit complicated, and there's no .reg key to just click. I may or may not make one.
The easiest way is to set a group policy, as that handles everyone that touches your computer, intentionally or otherwise.
1) Hit the Win Key and R at the same time (or however you desire to call up the run command)
2) Type in gpedit.msc and hit Enter (Group Policy Editor program).
3) Under the Local Computer Policy section, scroll down to Computer Configuration, and under that scroll down to Administrative Templates, and then down to Windows Components, and finally, down to OneDrive. Click on OneDrive. You'll get a screen that looks like this -
Right click on the blue highlighted area. You'll get a screen that should look like this -
It sounds counter-intuitive, but hit enable. The policy is to deny access, not enable access. Doing so shuts off OneDrive, full stop.
There is a nuclear option, which I do not recommend. That involves the removal of OneDrive completely. Simply copy/paste this batch file (OMG, DOS...) and either save it as a .cmd or .bat file. It's on you completely if you do this.
Code:
@echo off
cls
set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
echo Closing OneDrive process.
echo.
taskkill /f /im OneDrive.exe > NUL 2>&1
ping 127.0.0.1 -n 5 > NUL 2>&1
echo Uninstalling OneDrive.
echo.
if exist %x64% (
%x64% /uninstall
) else (
%x86% /uninstall
)
ping 127.0.0.1 -n 5 > NUL 2>&1
echo Removing OneDrive leftovers.
echo.
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
echo Removeing OneDrive from the Explorer Side Panel.
echo.
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
pause