Skip to content

Instantly share code, notes, and snippets.

@Leo1003
Last active December 26, 2018 15:12
Show Gist options
  • Save Leo1003/8c7fcb7f53648738c65ca796f0efd7d4 to your computer and use it in GitHub Desktop.
Save Leo1003/8c7fcb7f53648738c65ca796f0efd7d4 to your computer and use it in GitHub Desktop.
WindowsScripts
@echo off
echo Reset Internet Explorer for Each User Initialization...
ie4uinit -show
ie4uinit -ClearIconCache
echo Delete Cache Database...
taskkill /f /im explorer.exe
del /f /q "%LocalAppData%\IconCache.db"
del /f /q "%LocalAppData%\Microsoft\Windows\Explorer\iconcache_*.db"
del /f /q "%LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db"
echo Delete Cache Registry...
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /f
@start %windir%\explorer.exe
echo Completed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment