diff options
author | breadcat | 2020-06-16 17:36:38 +0100 |
---|---|---|
committer | breadcat | 2020-06-16 17:36:38 +0100 |
commit | e48b2759b07d25defb27b75fc5c7c27403625cd0 (patch) | |
tree | e5d848219634b988523ff5410597858690db3519 /4-remove.bat | |
parent | 924f79b624772076e30590ab7d8a19d1a0c012ed (diff) | |
download | win10-prep-e48b2759b07d25defb27b75fc5c7c27403625cd0.tar.gz win10-prep-e48b2759b07d25defb27b75fc5c7c27403625cd0.tar.bz2 win10-prep-e48b2759b07d25defb27b75fc5c7c27403625cd0.zip |
Remove adobe flash
Diffstat (limited to '4-remove.bat')
-rw-r--r-- | 4-remove.bat | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/4-remove.bat b/4-remove.bat index 82f64d6..dd79bd6 100644 --- a/4-remove.bat +++ b/4-remove.bat @@ -22,3 +22,20 @@ reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal reg delete HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Microsoft\Silverlight /f rmdir /s /q "%ProgramFiles%\Microsoft Silverlight" rmdir /s /q "%ProgramFiles(x86)%\Microsoft Silverlight" +rem remove adobe flash +takeown /f "%windir%\System32\Macromed" /r /d y +takeown /f "%windir%\System32\Macromed\Flash\*.*" +takeown /f "%windir%\SysWOW64\FlashPlayerApp.exe" /r /d y +takeown /f "%windir%\SysWOW64\FlashPlayerCPLApp.cpl" /r /d y +takeown /f "%windir%\SysWOW64\Macromed" /r /d y +takeown /f "%windir%\SysWOW64\Macromed\Flash\*.*" +icacls "%windir%\System32\Macromed" /grant administrators:F /t +icacls "%windir%\SysWOW64\FlashPlayerApp.exe" /grant administrators:F /t +icacls "%windir%\SysWOW64\FlashPlayerCPLApp.cpl" /grant administrators:F /t +icacls "%windir%\SysWOW64\Macromed" /grant administrators:F /t +rd /s /q "%appdata%\Adobe" +rd /s /q "%windir%\System32\Macromed" +rd /s /q "%windir%\SysWOW64\Macromed" +rd /s /q "%appdata%\Macromedia\Flash Player" +del "%windir%\SysWOW64\FlashPlayerApp.exe" +del "%windir%\SysWOW64\FlashPlayerCPLApp.cpl"
\ No newline at end of file |