SHARE
TWEET

Windows Cleanup

TairikuOkami Jul 24th, 2015 (edited) 6,252 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!!
  2.  
  3. rem Driver Easy - https://www.drivereasy.com
  4. rem Driver Store Explorer - https://github.com/lostindark/DriverStoreExplorer/releases
  5. rem Geek Uninstaller  - https://geekuninstaller.com
  6. rem Wise Disk Cleaner - http://www.wisecleaner.com/wise-disk-cleaner.html
  7. rem Wise Registry Cleaner - http://www.wisecleaner.com/wise-registry-cleaner.html
  8. rem Windows Drivers - http://www.catalog.update.microsoft.com
  9.  
  10. rem Open Explorer - Choose the desired View - View - Options - View - Apply to Folders - OK - Close Explorer ASAP
  11. reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /f
  12. reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /f
  13. reg delete "HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags" /f
  14. reg delete "HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /f
  15. reg delete "HKCU\Software\Microsoft\Windows\Shell\Bags" /f
  16. reg delete "HKCU\Software\Microsoft\Windows\Shell\BagMRU" /f
  17. reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /f
  18. reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /f
  19. reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "FolderType" /t REG_SZ /d "NotSpecified" /f
  20.  
  21. rem Defrag HDD - Boot Windows USB - Repair - Troubleshoot - CMD - type/enter
  22. rem c:
  23. rem cd windows
  24. rem cd system32
  25. rem defrag c: /u
  26. rem https://s22.postimg.cc/df2t2gh8v/capture_06272018_231341.jpg
  27. rem https://s22.postimg.cc/lkkv0mkxd/capture_06272018_232206.jpg
  28.  
  29. fsutil usn deletejournal /d /n c:
  30. chkdsk /scan
  31.  
  32. taskkill /im TiWorker.exe /f
  33. taskkill /im trustedinstaller.exe /f
  34. net stop bits /y
  35. net stop cryptSvc /y
  36. net stop DoSvc /y
  37. net stop msiserver /y
  38. net stop UsoSvc /y
  39. net stop winmgmt /y
  40. winmgmt /salvagerepository
  41. net stop wuauserv /y
  42.  
  43. del "C:\$Recycle.bin" /s /f /q
  44. del "D:\$Recycle.bin" /s /f /q
  45. del "Z:\$Recycle.bin" /s /f /q
  46. del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat" /s /f /q
  47. del "%ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat" /s /f /q
  48. del "%LocalAppData%\Microsoft\Windows\INetCache" /s /f /q
  49. del "%LocalAppData%\Microsoft\Windows\WebCache" /s /f /q
  50. del "%LocalAppData%\Temp" /s /f /q
  51. del "%temp%" /s /f /q
  52. del "%WINDIR%\Logs" /s /f /q
  53. del "%WINDIR%\Installer\$PatchCache$" /s /f /q
  54. del "%WINDIR%\SoftwareDistribution" /s /f /q
  55. del "%WINDIR%\System32\LogFiles" /s /f /q
  56. del "%WINDIR%\System32\winevt\Logs" /s /f /q
  57. del "%WINDIR%\Temp" /s /f /q
  58. del "%WINDIR%\WinSxS\Backup" /s /f /q
  59.  
  60. vssadmin delete shadows /for=c: /all /quiet
  61. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t "REG_DWORD" /d "1" /f
  62. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "SupersededActions" /t "REG_DWORD" /d "1" /f
  63. Dism /Online /Cleanup-Image /CheckHealth
  64. Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
  65.  
  66. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  67. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\BranchCache" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  68. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Content Indexer Cleaner" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  69. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\D3D Shader Cache" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  70. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Delivery Optimization Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  71. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Device Driver Packages" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  72. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Diagnostic Data Viewer database files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  73. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded Program Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  74. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\DownloadsFolder" /v "StateFlags6553" /t REG_DWORD /d "0" /f
  75. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameNewsFiles" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  76. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameStatisticsFiles" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  77. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\GameUpdateFiles" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  78. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Internet Cache Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  79. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Offline Pages Files" /v "StateFlags6553" /t REG_DWORD /d "0" /f
  80. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Old ChkDsk Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  81. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Previous Installations" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  82. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Recycle Bin" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  83. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\RetailDemo Offline Content" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  84. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Service Pack Cleanup" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  85. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Setup Log Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  86. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\System error memory dump files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  87. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\System error minidump files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  88. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  89. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Setup Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  90. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Sync Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  91. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  92. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Update Cleanup" /v "Autorun" /t REG_DWORD /d "0" /f
  93. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Update Cleanup" /v "StateFlags6553" /t REG_DWORD /d "0" /f
  94. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Upgrade Discarded Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  95. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\User file versions" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  96. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Defender" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  97. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Error Reporting Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  98. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows ESD installation files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  99. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Windows Upgrade Log Files" /v "StateFlags6553" /t REG_DWORD /d "2" /f
  100. rem cleanmgr /sageset:6553
  101. cleanmgr /sagerun:6553
  102.  
  103. start "" /wait "%ProgramFiles(x86)%\Wise\Wise Disk Cleaner\WiseDiskCleaner.exe" -a
  104. start "" /wait "%ProgramFiles(x86)%\Wise\Wise Registry Cleaner\WiseRegCleaner.exe" -a -all
  105. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ValidateAdminCodeSignatures" /t REG_DWORD /d "0" /f
  106. start "" /wait "D:\Software\Temp\Soft\Windows Repair Toolbox\Downloads\Custom Tools\Added Custom Tools\Rapr.exe"
  107. start "" /wait "%ProgramFiles(x86)%\ADATA\SSD ToolBox\SSDToolBox.exe"
  108. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ValidateAdminCodeSignatures" /t REG_DWORD /d "1" /f
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top