Dans la zone de recherche Windows, saisissez "Bloc-notes".
Cliquez sur Bloc-notes.
Copiez le code source suivant dans le bloc-notes :
Dans le menu du Bloc-notes, sélectionnez Fichier puis Enregistrer sous...echo GRAND NETTOYAGE WINDOWS!!!
del /f /q "%userprofile%\Cookies\*.*"
del /f /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
cls
if exist "C:\WINDOWS\temp"del /f /q "C:WINDOWS\temp\*.*"
if exist "C:\WINDOWS\tmp" del /f /q "C:\WINDOWS\tmp\*.*"
if exist "C:\tmp" del /f /q "C:\tmp\*.*"
if exist "C:\temp" del /f /q "C:\temp\*.*"
if exist "%temp%" del /f /q "%temp%\*.*"
if exist "%tmp%" del /f /q "%tmp%\*.*"
if exist "C:\WINDOWS\ShellIconCache\" del /f /q "C:\WINDOWS\ShellI~1\*.*"
cls
if exist "%UserProfilePath%\Local Settings\Temp\" del /f /s /q "%UserProfilePath%\Local Settings\Temp\"
if exist "%UserProfilePath%\Local Settings\Temporary Internet\" del /f /s /q "%UserProfilePath%\Local Settings\Temporary Internet\"
if exist "%UserProfilePath%\Application Data\Sun\Java\Deployment\cache\" del /f /s /q "%UserProfilePath%\Application Data\Sun\Java\Deployment\cache\"
if exist "%UserProfilePath%\AppData\Local\Temp\" del /f /s /q "%UserProfilePath%\AppData\Local\Temp\"
if exist "%UserProfilePath%\AppData\LocalLow\Temp\" del /f /s /q "%UserProfilePath%\AppData\LocalLow\Temp\"
if exist "%UserProfilePath%\AppData\LocalLow\Sun\Java\Deployment\cache\" del /f /s /q "%UserProfilePath%\AppData\LocalLow\Sun\Java\Deployment\cache\"
if exist "%UserProfilePath%\AppData\Local\Microsoft\Windows\Temporary Internet Files\" del /f /s /q "%UserProfilePath%\AppData\Local\Microsoft\Windows\Temporary Internet Files\"
cls
DEL C:\Windows\Prefetch*.* /Q
DEL C:\Windows\Temp*.* /Q
DEL C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Recent Items*.* /Q
cls
echo Tout a été nettoyé chef !!! Veuillez redémarrer pour terminer!
pause
Dans la zone Nom du fichier, saisissez "Nettoyage.bat" ou le nom de votre choix avec l'extension .bat.
Sur le bureau, faites un clic droit sur le fichier Nettoyage.bat et sélectionnez Exécuter en tant qu'administrateur.
Une fois le script terminé, appuyez sur une touche pour quitter.
Un redémarrage est nécessaire pour procéder au nettoyage complet.
Source : http://www.tutoriaux-excalibur.com/opti ... ouris.html