Windows 10 PowerCfg 命令詳解


使用戶能夠控製本地係統上的電源設置。

另請參閱: at     PowerCfg 命令行選項     shutdown

基本用法     詳細用法

PowerCfg /command [arguments]
			

command 命令

參數 EN 解釋 中文翻譯 備注
-HELP, -?
/LIST, /L Lists all power schemes. 列齣所有電源方案。
/QUERY, /Q Displays the contents of a power scheme. 顯示電源方案的內容。
/CHANGE, /X Modifies a setting value in the current power scheme. 修改當前電源方案的設置值。
/CHANGENAME Modifies the name and description of a power scheme. 修改名稱和電源方案的描述。
/DUPLICATESCHEME Duplicates a power scheme. 復製電源方案。
/DELETE, /D Deletes a power scheme. 刪除電源方案。
/DELETESETTING Deletes a power setting. 刪除電源設置。
/SETACTIVE, /S Makes a power scheme active on the system. 使電源方案在係統上處於活動狀態。
/GETACTIVESCHEME Retrieves the currently active power scheme. 檢索當前活動的電源方案。
/SETACVALUEINDEX Sets the value associated with a power setting while the system is powered by AC power. 設置與電源設置關聯的值,當係統由交流電源供電時。
/SETDCVALUEINDEX Sets the value associated with a power setting while the system is powered by DC power. 設置與電源設置關聯的值,當係統是由直流電源供電時。
/IMPORT Imports all power settings from a file. 從文件導入所有電源設置。
/EXPORT Exports a power scheme to a file. 把電源方案導齣到文件。
/ALIASES Displays all aliases and their corresponding GUIDs. 顯示所有彆名及其相應 GUID。
/GETSECURITYDESCRIPTOR Gets a security descriptor associated with a specified power setting, power scheme, or action. 獲取與指定電源設置 電源方案或動作關聯的安全描述符。
/SETSECURITYDESCRIPTOR Sets a security descriptor associated with a power setting, power scheme, or action. 設置與電源設置 電源方案或動作關聯的安全描述符。
/HIBERNATE, /H Enables and disables the hibernate feature. 啓用和禁用休眠特徵。
/AVAILABLESLEEPSTATES, /A Reports the sleep states available on the system. 報告係統中可用的休眠狀態。
/DEVICEQUERY Returns a list of devices that meet specified criteria. 返迴符閤指定條件的設備列錶。
/DEVICEENABLEWAKE Enables a device to wake the system from a sleep state. 使設備能夠從休眠狀態喚醒係統。
/DEVICEDISABLEWAKE Disables a device from waking the system from a sleep state. 禁止設備從休眠狀態喚醒係統。
/LASTWAKE Reports information about what woke the system from the last sleep transition. 報告從上次休眠過渡中喚醒係統的有關信息。
/WAKETIMERS Enumerates active wake timers. 枚舉活動喚醒計時器。
/REQUESTS Enumerates application and driver Power Requests. 枚舉應用程序和驅動程序的電源請求。
/REQUESTSOVERRIDE Sets a Power Request override for a particular Process, Service, or Driver. 為特定進程 服務或驅動程序設置電源請求覆寫。
/ENERGY Analyzes the system for common energy-efficiency and battery life problems. 分析係統的常見能量效率和電池壽命問題。
/BATTERYREPORT Generates a report of battery usage. 生成電池使用情況報告。 Windows 7 無此命令
/SLEEPSTUDY Generates a diagnostic system power transition report. 生成診斷係統電源轉變報告。 Windows 7 無此命令
/SRUMUTIL Dumps Energy Estimation data from System Resource Usage Monitor (SRUM). 從 SRUM (係統資源使用情況監視器) 轉儲能源估算數據。 Windows 7 無此命令
/SYSTEMSLEEPDIAGNOSTICS Generates a diagnostic report of system sleep transitions. 生成係統休眠轉變的診斷報告。 Windows 7 無此命令
/SYSTEMPOWERREPORT Generates a diagnostic system power transition report. 生成診斷係統電源轉變報告。 Windows 7 無此命令
/POWERTHROTTLING Control power throttling for an application. 控製應用程序的電源節流。 Windows 7 無此命令

基本用法

功能 命令 文字解釋 示例 示例解釋
方案 PowerCfg /L 詳細列齣係統中的所有電源方案
休眠 PowerCfg /H on 啓用係統休眠
PowerCfg /H off 關閉係統休眠 (刪除 C:/ 休眠文件 hiberfil.sys)
查詢 PowerCfg /Q 展示當前電源配置方案的信息
PowerCfg /Q scheme_GUID 展示 scheme_GUID 電源配置方案的信息
PowerCfg /Q scheme_GUID sub_GUID 展示 scheme_GUID 電源配置方案的 sub_GUID 信息
更改

PowerCfg /X setting value

setting 值包括:

  • disk-timeout-ac
  • disk-timeout-dc
  • monitor-timeout-ac
  • monitor-timeout-dc
  • standby-timeout-ac
  • standby-timeout-dc
  • hibernate-timeout-ac
  • hibernate-timeout-dc
  • 按 value 分鍾重新設置 setting

    PowerCfg /X disk-timeout-ac 0

    PowerCfg /X monitor-timeout-ac 0

    PowerCfg /X standby-timeout-ac 0

    PowerCfg /X monitor-timeout-ac 1

    PowerCfg /X hibernate-timeout-ac 0

    從不關閉硬盤

    從不關閉顯示器

    從不進入睡眠狀態

    1 分鍾關閉顯示器

    從不進入休眠狀態

    PowerCfg /Q scheme_GUID sub_GUID 展示 scheme_GUID 電源配置方案的 sub_GUID 信息
    幫助 PowerCfg /? 展示幫助信息
    PowerCfg /? <command> 展示命令幫助信息

     

    版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。