去除關機選項
gpedit.msc
User Configuration(用戶配置)
Administrative Templates(管理模板)
Start Menu and Taskbar(“開始”菜單和任務欄)
Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands
Not Configured --> Enable
這樣操作之後,“關機”、“重啓”等命令全沒有了,我們想要的結果是保留“重啓”
命令重啓
shutdown -r -t 5
-r: restart
-t: time, seconds
shutdown -s -t 0
-s: shutdown
REMOVE SHUTDOWN OPTIONS FROM WINDOWS 7 START MENU