Skip to content

Instantly share code, notes, and snippets.

@myfreeer
Last active August 24, 2016 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myfreeer/1c4a1ce37161e288cf01c5e52b879e05 to your computer and use it in GitHub Desktop.
Save myfreeer/1c4a1ce37161e288cf01c5e52b879e05 to your computer and use it in GitHub Desktop.
Rebuild Windows' Icon Cache And Disable Notification Center
@echo off
taskkill /f /im explorer.exe
reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f
REG ADD HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer /v DisableNotificationCenter /t REG_DWORD /d 1 /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v HideSCAHealth /t REG_DWORD /d 1
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v HideSCAHealth /t REG_DWORD /d 1
for %%i in (
%USERPROFILE%\AppData\Local\Microsoft\Windows\Explorer
%USERPROFILE%\AppData\Local\IconCache.db
) do (
attrib -r -s -h %%i /D /S
del %%i /f /s /q
)
::timeout /t 1
cd /d %SystemRoot%\System32
start explorer
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment