Vista 預設電源按鈕為「睡眠」,習慣關機的用戶易誤觸。三步驟修改為「關機」。
powercfg -setacvalueindex scheme_current sub_buttons lidaction 3 powercfg -setdcvalueindex scheme_current sub_buttons lidaction 3 powercfg -setactive scheme_current
lidaction 值:0=無動作、1=睡眠、2=休眠、3=關機。適合批次部署腳本。
lidaction