Page 1 of 1

Tip: How to remove the baked-in Adobe Flash from Windows 10?

Posted: Wed Feb 08, 2017 3:43 pm
by jakoch
Here is a helper for removing the baked-in Adobe Flash from Windows 10:

remove-flash.bat

Code: Select all

@echo off

echo Remove Adobe Flash from Windows 10
echo.
echo This will remove the baked-in Adobe Flash from Windows 10.
echo Run this script as admin.
echo.
pause

takeown /f "%windir%\System32\Macromed" /r /d y
icacls "%windir%\System32\Macromed" /grant users:F /t
rd /s /q "%windir%\System32\Macromed"
echo.

takeown /f "%windir%\SysWOW64\Macromed" /r /d y
icacls "%windir%\SysWOW64\Macromed" /grant users:F /t
rd /s /q "%windir%\SysWOW64\Macromed"
echo.

takeown /f "%windir%\SysWOW64\FlashPlayerApp.exe" /r /d y
icacls "%windir%\SysWOW64\FlashPlayerApp.exe" /grant users:F /t
rd /s /q "%windir%\SysWOW64\FlashPlayerApp.exe"
takeown /f "%windir%\SysWOW64\FlashPlayerCPLApp.cpl" /r /d y
icacls "%windir%\SysWOW64\FlashPlayerCPLApp.cpl" /grant users:F /t
rd /s /q "%windir%\SysWOW64\FlashPlayerCPLApp.cpl"
echo.

rd /s /q "%appdata%\Adobe"
rd /s /q "%appdata%\Macromedia"
echo.

pause