在win10/11的右键菜单添加电源选项

前言:

今天,博主从网上找到了在右键菜单中添加电源选项的方法,觉得挺实用的所以来教大家

方法:

下载(懒人专用,直接打开文件即可):

csdn中下载(启用和关闭文件都有)

方法(仅打字方法):

打字方法(启用电源选项):

第一步,先在桌面创建一个文件,后缀名改为 .reg :

第二步,右键它然后编辑:

第三步,粘贴下面代码并保存:

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu]

"MUIVerb"="电源"

"SubCommands"="lock;logoff;switch;sleep;hibernate;restart;shutdown"

"Icon"="shell32.dll,215"

"Position"="bottom"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]

@="锁定"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command]

@="Rundll32 User32.dll,LockWorkStation"


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]

@="注销"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command]

@="Shutdown -l"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch]

@="更改用户"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch\command]

@="tsdiscon.exe"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]

@="睡眠"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command]

@="rundll32.exe powrprof.dll,SetSuspendState Sleep"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]

@="休眠"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command]

@="Shutdown -h"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]

@="重启"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command]

@="Shutdown -r -f -t 00"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]

@="关机"



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command]

@="Shutdown -s -f -t 00"

最后一步,打开文件然后选是,接着选确定即可:

接下来你就会发现右键菜单中有了 电源 这个选项,用起来挺方便

注意:该方法只适用于不是Windows11的反人类菜单情况下执行

将Windows11菜单变为Windows10菜单方法

打字方法(关闭电源选项):

第一步,先在桌面创建一个文件,后缀名改为 .reg :

第二步,右键它然后编辑:

第三步,输入下面代码并保存:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\Power Menu]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch]

最后一步,运行打开文件然后选是,接着选确定即可:

猜你喜欢

转载自blog.csdn.net/m0_71663621/article/details/130913886