forked from dfkt/win10-unfuck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflash-remove.bat
More file actions
34 lines (27 loc) · 984 Bytes
/
flash-remove.bat
File metadata and controls
34 lines (27 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
REM original findings by https://twitter.com/deycrypt/status/628914599706914816
echo FUCK OFF FLASH
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 administrators:F /t
rd /s /q "%windir%\System32\Macromed"
echo.
takeown /f "%windir%\SysWOW64\Macromed" /r /d y
icacls "%windir%\SysWOW64\Macromed" /grant administrators:F /t
rd /s /q "%windir%\SysWOW64\Macromed"
echo.
takeown /f "%windir%\SysWOW64\FlashPlayerApp.exe" /r /d y
icacls "%windir%\SysWOW64\FlashPlayerApp.exe" /grant administrators:F /t
rd /s /q "%windir%\SysWOW64\FlashPlayerApp.exe"
takeown /f "%windir%\SysWOW64\FlashPlayerCPLApp.cpl" /r /d y
icacls "%windir%\SysWOW64\FlashPlayerCPLApp.cpl" /grant administrators:F /t
rd /s /q "%windir%\SysWOW64\FlashPlayerCPLApp.cpl"
echo.
rd /s /q "%appdata%\Adobe"
rd /s /q "%appdata%\Macromedia"
echo.
pause