在Win10系统中有很多小技巧,右键菜单也是可以添加关机按钮的,那么如何在Win10右键菜单中添加关机选项呢?下面让电脑知识网来告诉你如何设置右键菜单的关机按钮吧。
操作方法:
下面先带上启用与关闭关机按钮的注册表代码:
启动代码:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDesktopBackgroundShellPower Menu]
“MUIVerb”=“电源”
“SubCommands”=“lock;logoff;switch;sleep;hibernate;restart;shutdown”
“Icon”=“shell32.dll,215”
“Position”=“bottom”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshelllock]
@=“锁定”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshelllockcommand]
@=“Rundll32 User32.dll,LockWorkStation”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshelllogoff]
@=“注销”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshelllogoffcommand]
@=“Shutdown -l”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellswitch]
@=“更改用户”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellswitchcommand]
@=“tsdiscon.exe”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellsleep]
@=“睡眠”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellsleepcommand]
@=“rundll32.exe powrprof.dll,SetSuspendState Sleep”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellhibernate]
@=“休眠”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellhibernatecommand]
@=“Shutdown -h”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellestart]
@=“重启”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellestartcommand]
@=“Shutdown -r -f -t 00”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellshutdown]
@=“关机”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerCommandStoreshellshutdowncommand]
@=“Shutdown -s -f -t 00”