Win11卸载Internet Explorer

Win11卸载Internet Explorer

卸载Internet Explorer

控制面板→程序→启用或关闭windows功能→取消勾选 Internet Explorer 11→重启

位于C:\Program Files (x86)和C:\Programe Files文件夹下

编写cmd脚本,并以管理员身份运行

@echo off

:: 检查是否以管理员身份运行

net session >nul 2>&1

if %errorLevel% == 0 (

echo Running as administrator.

) else (

echo Please run as administrator.

pause

exit /b

)

:: 定义要删除的文件夹路径

set "folder1=C:\Program Files (x86)\Internet Explorer"

set "folder2=C:\Program Files\Internet Explorer"

:: 调试:打印变量值

echo folder1: "%folder1%"

echo folder2: "%folder2%"

:: 删除第一个文件夹(如果存在)

if exist "%folder1%" (

echo Taking ownership of "%folder1%"...

takeown /f "%folder1%" /r /d y

icacls "%folder1%" /grant administrators:F /t

echo Deleting "%folder1%"...

rd /s /q "%folder1%"

echo "%folder1%" has been deleted.

) else (

echo "%folder1%" does not exist.

)

:: 删除第二个文件夹(如果存在)

if exist "%folder2%" (

echo Taking ownership of "%folder2%"...

takeown /f "%folder2%" /r /d y

icacls "%folder2%" /grant administrators:F /t

echo Deleting "%folder2%"...

rd /s /q "%folder2%"

echo "%folder2%" has been deleted.

) else (

echo "%folder2%" does not exist.

)

pause

(推荐)手动清理注册表,参考:https://www.kafan.cn/A/7njp21d4np.html

相关数据流

天猫次日达在哪里选?有什么规定?
线上365bet注册

天猫次日达在哪里选?有什么规定?

⌚ 10-13 👁️‍🗨️ 1593
《只有河南·戏剧幻城》
线上365bet注册

《只有河南·戏剧幻城》

⌚ 09-16 👁️‍🗨️ 9749
宂忙的意思
365bet官方亚洲版

宂忙的意思

⌚ 07-25 👁️‍🗨️ 6996