OneDrive_Uninstaller.bin 846 B

12345678910111213141516171819202122232425262728293031
  1. @echo off
  2. cls
  3. set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
  4. set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
  5. echo Closing OneDrive process.
  6. echo.
  7. taskkill /f /im OneDrive.exe > NUL 2>&1
  8. ping 127.0.0.1 -n 5 > NUL 2>&1
  9. echo Uninstalling OneDrive...
  10. echo.
  11. if exist %x64% (
  12. %x64% /uninstall
  13. ) else (
  14. %x86% /uninstall
  15. )
  16. ping 127.0.0.1 -n 5 > NUL 2>&1
  17. echo Removing OneDrive leftovers...
  18. echo.
  19. rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
  20. rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
  21. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
  22. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
  23. echo Removing OneDrive from the Explorer Side Panel...
  24. echo.
  25. REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  26. REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1