Last active
August 24, 2016 08:06
-
-
Save myfreeer/1c4a1ce37161e288cf01c5e52b879e05 to your computer and use it in GitHub Desktop.
Rebuild Windows' Icon Cache And Disable Notification Center
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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