Advertisement
Guest User

stayjuice.com Antiforensics Sctipt

a guest
Aug 30th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. Clear System Stay Icon Cache
  2.  
  3. @echo off
  4. cls
  5. set regPath=HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify
  6. set regKey1=IconStreams
  7. set regKey2=PastIconsStream
  8. set choice=Bad-Response
  9.  
  10. echo The Explorer process must be killed to reset the Notification Area Icons Cache.
  11. echo.
  12. echo Please SAVE ALL OPEN WORK before continuing
  13. echo.
  14. pause
  15.  
  16. echo.
  17. taskkill /IM explorer.exe /F
  18. echo.
  19. FOR /F "tokens=*" %%a in ('Reg Query "%regpath%" /v %regkey1% ^| find /i "%regkey1%"') do goto iconstreams
  20. echo Registry key "IconStreams" already deleted.
  21. echo.
  22.  
  23. :verify-PastIconsStream
  24. FOR /F "tokens=*" %%a in ('Reg Query "%regpath%" /v %regkey2% ^| find /i "%regkey2%"') do goto PastIconsStream
  25. echo Registry key "PastIconsStream" already deleted.
  26. echo.
  27. goto confirm-restart
  28.  
  29. :iconstreams
  30. reg delete "%regpath%" /f /v "%regkey1%"
  31. goto verify-PastIconsStream
  32.  
  33. :PastIconsStream
  34. reg delete "%regpath%" /f /v "%regkey2%"
  35.  
  36. :confirm-restart
  37. echo.
  38. echo.
  39. echo Windows must be restarted to finish resetting the Notification Area Icons.
  40. echo.
  41.  
  42. :wrong
  43. set /p choice=Restart now? (Y/N) and press Enter:
  44. If %choice% == y goto Yes
  45. If %choice% == Y goto Yes
  46. If %choice% == n goto No
  47. If %choice% == N goto No
  48. set choice=Bad-Response
  49. goto wrong
  50.  
  51. :Yes
  52. shutdown /R /f /t 00
  53. exit
  54.  
  55.  
  56. :No
  57. echo.
  58. echo Restart aborted. Please remember to restart the computer later.
  59. echo.
  60. echo You can now close this command prompt window.
  61. explorer.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement