1、首先,在這臺電腦內,選擇“查看”,然后勾選“擴展名”,使其顯示文件的擴展名。
2、在系統桌面使用鼠標點擊右鍵,選擇“新建”-“文本文檔”。
3、打開文本文檔,拷入這些代碼。可以刪除自己不需要的功能。
4、WindowsRegistryEditorVersion5.00。 5、[HKEY_CLASSES_ROOT\DesktopBackground\Shell\PowerMenu]MUIVerb=電源控制SubCommands=lock;logoff;switch;sleep;hibernate;restart;shutdownIc
6、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock]@=鎖定 。
7、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\lock\command]@=Rundll32User32.dll,LockWorkStation。
8、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff]@=注銷。
9、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\logoff\command]@=Shutdown-l 。
10、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch]@=更改用戶。
11、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\switch\command]@=tsdiscon.exe 。
12、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep]@=睡眠。
13、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\sleep\command]@=rundll32.exepowrprof.dll,SetSuspendStateSleep。
14、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate]@=休眠 。
15、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\hibernate\command]@=Shutdown-h。
16、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart]@=重啟。
17、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\restart\command]@=Shutdown-r-f-t00 。
18、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown]@=關機。
19、[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\shutdown\command]@=Shutdown-s-f-t00 。
20、然后關閉,并保存文檔,在文檔處單擊右鍵,選擇“重命名”。
21、把文件名的后綴名,從“txt”格式修改為“reg”格式。
22、確認重命名。
23、雙擊打開修改完成的注冊表編輯器,在其彈出的窗口中,選擇“是”
24、右鍵菜單加入電源控制成功。