Win11右键回归win10样式

1 win+x 选择管理员模式打开终端或者powershell
2 输入以下命令并回车

reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

3 任务列表中重启windows资源管理器

1 个赞

还原Win11样式:

reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /va /f

批处理:

@echo off
@Rem Service should on: Secondary Logo
title 获取管理员权限
echo 获取管理员权限...
%1 %2
ver | find "5." >nul && goto :st
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :st","","runas",1)(window.close) & goto :eof

:st
copy "%~0" "%windir%\system32\"
echo 启用管理员权限成功

title Win11右击菜单风格设置
COLOR 0B
cls

:loop
echo.
echo Win11右击菜单风格设置
echo 在完成前请不要关闭本窗口
echo.
set input=999
echo 输入对应数字并按回车来继续,输入其他字符退出
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃ 1   Windows 10风格;   ┃
echo ┃ 2   Windows 11风格;   ┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━┛
set /p input= 请输入:
if %input%==1 (goto set_win10)
if %input%==2 (goto set_win11)
if not defined tsk exit

:set_win10
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f >nul
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve /d "" >nul
goto restart_explorer

:set_win11
reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f >nul
goto restart_explorer

:restart_explorer
cls
echo 正在重启资源管理器...
taskkill /f /im explorer.exe >nul
timeout /t 3 /nobreak >nul
start explorer.exe
echo 操作完成!
timeout /t 3 /nobreak >nul
cls
goto loop

1 个赞

使用 Do 的用户没这个烦恼.

没必要生成 Rx.reg 再删掉吧,直接使用 reg add HKCU\... / reg delete HKCU\...

你说得没错,这是我初学时候写的 :rofl:一直没有更新。
我这就摸鱼更新一下 :doge:

shift 加右键也可以