Advertisement
TDamiao

REMOVER COMPLETAMENTE O ''OneDrive"

Mar 16th, 2018
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     REMOVER COMPLETAMENTE O ''OneDrive'' - Windows 10 2017/2018
  3.     Salve arquivo .bat
  4.     Por: TDmaiao
  5. */
  6.  
  7. @echo off
  8. cls
  9.  
  10. set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
  11. set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
  12.  
  13. echo Closing OneDrive process.
  14. echo.
  15. taskkill /f /im OneDrive.exe > NUL 2>&1
  16. ping 127.0.0.1 -n 5 > NUL 2>&1
  17.  
  18. echo Uninstalling OneDrive.
  19. echo.
  20. if exist %x64% (
  21. %x64% /uninstall
  22. ) else (
  23. %x86% /uninstall
  24. )
  25. ping 127.0.0.1 -n 5 > NUL 2>&1
  26.  
  27. echo Removing OneDrive leftovers.
  28. echo.
  29. rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
  30. rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
  31. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
  32. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
  33.  
  34. echo Removeing OneDrive from the Explorer Side Panel.
  35. echo.
  36. REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  37. REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  38.  
  39. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement