Guest User

Remove Flash from Windows 10

a guest
May 10th, 2018
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. ::
  3. :: Windows10 updates Flash and reinstalls every time. This script removes Flash again.
  4. :: Found at https://eksith.wordpress.com/2015/08/06/how-to-remove-flash-from-windows-10/.
  5. :: User r-bert August 23, 2015 at 8:29 am
  6. ::
  7. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  8. :: take ownership
  9.  
  10. takeown /f C:\Windows\SysWOW64\Macromed\Flash\*.*
  11. takeown /f C:\Windows\System32\Macromed\Flash\*.*
  12.  
  13. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  14. :: extend access
  15.  
  16. ::cacls C:\Windows\SysWOW64\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F
  17. ::cacls C:\Windows\System32\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F
  18. cacls C:\Windows\SysWOW64\Macromed\Flash\*.* /E /T /G MSI\admin:F
  19. cacls C:\Windows\System32\Macromed\Flash\*.* /E /T /G MSI\admin:F
  20.  
  21. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  22. :: delete
  23.  
  24. del C:\Windows\SysWOW64\Macromed\Flash\*.* /Q
  25. del C:\Windows\System32\Macromed\Flash\*.* /Q
  26. rd C:\Windows\SysWOW64\Macromed\Flash
  27. rd C:\Windows\System32\Macromed\Flash
  28. rd C:\Windows\SysWOW64\Macromed
  29. rd C:\Windows\System32\Macromed
  30. del C:\Windows\SysWOW64\FlashPlayerApp.exe
  31. del C:\Windows\SysWOW64\FlashPlayerCPLApp.cpl
Advertisement
Add Comment
Please, Sign In to add comment