為保護資料安全,建議設定 Windows 7 從睡眠/待機喚醒時必須輸入密碼。本文圖文說明透過電源選項啟用「喚醒時需要密碼」的完整步驟。
| 設定項目 | 路徑 | 說明 |
|---|---|---|
| 螢幕保護程式啟動需密碼 | 個人化 → 螢幕保護程式 → 勾選「繼續時顯示登入畫面」 | 螢保啟動後同樣需密碼 |
| 關閉筆電合蓋動作 | 電源選項 → 選擇合蓋時的動作 → 「合上蓋子」設為「睡眠」/「休眠」/「不做任何事」 | 配合喚醒需密碼實現合蓋即鎖定 |
| 閒置自動睡眠時間 | 電源選項 → 變更計畫設定 → 「使電腦進入睡眠」設定分鐘數 | 離位自動鎖定 |
| 動態鎖定 (Win10) | 設定 → 帳戶 → 登入選項 → 動態鎖定 → 配對手機藍牙 | 離開藍牙範圍自動鎖定 (Win7 無此功能) |
# 啟用喚醒需密碼
powercfg -setacvalueindex scheme_current sub_none consolock 1
powercfg -setdcvalueindex scheme_current sub_none consolock 1
powercfg -setactive scheme_current
# 停用喚醒需密碼
powercfg -setacvalueindex scheme_current sub_none consolock 0
powercfg -setdcvalueindex scheme_current sub_none consolock 0
powercfg -setactive scheme_current