1.win11隐藏右键显示更多选项,直接右键全部显示(管理员身份运行)
::设置编码方式(65001 UTF-8;936 GBK;437 英语)
chcp 65001
@echo off
:start
cls
echo,
echo 修改右键菜单模式
echo,
echo 1 穿越到Windows 10默认模式
echo,
echo 2 恢复为Windows 11默认模式
echo,
echo 0 什么也不做,退出
echo,
echo,
choice /c:120 /n /m:"请选择要进行的操作(1/2/0):"
if %errorlevel%==0 exit
if %errorlevel%==2 goto cmd2
if %errorlevel%==1 goto cmd1
exit
:cmd1
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
taskkill /f /im explorer.exe
start explorer.exe
exit
:cmd2
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
taskkill /f /im explorer.exe
start explorer.exe
exit
2.关闭Windows点击F1打开浏览器(管理员身份运行)
::设置编码方式(65001 UTF-8;936 GBK;437 英语)
chcp 65001
@echo off
taskkill /f /im HelpPane.exe
takeown /f %WinDir%\HelpPane.exe
icacls %WinDir%\HelpPane.exe /deny Everyone:(X)
3.解决找不到gpedit.msc(管理员身份运行)
::设置编码方式(65001 UTF-8;936 GBK;437 英语)
chcp 65001
@echo off
pushd "%~dp0"
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"
pause
4.killJava
taskkill /f /t /im java.exe
网友评论