功能 | 命令 |
请求电源的任务 |
电源任务-查询 | powercfg /requests |
电源任务-禁止 | powercfg -requestsoverride DRIVER "USB Audio Device" SYSTEM |
电源任务-上一次 | powercfg -lastwake |
唤醒的硬件 |
唤醒硬件-查询所有 | powercfg -devicequery wake_programmable |
唤醒硬件-查询生效 | powercfg -devicequery wake_armed |
唤醒硬件-禁用 | powercfg -devicedisablewake "Intel(R) Dual Band Wireless-AC 8265" |
唤醒硬件-启用 | powercfg -deviceenablewake "Intel(R) Dual Band Wireless-AC 8265" |
唤醒的任务计划 |
唤醒计划-查看定时器 | powercfg -waketimers |
唤醒计划-查看相关 | Get-ScheduledTask | where {$_.settings.waketorun} |
唤醒计划-查看所有 | Get-ScheduledTask | Where-Object { $_.State -eq "Running" } | Format-Table TaskName, TaskPath, State |
唤醒计划-明细信息 | Get-ScheduledTask -TaskName ".NET Framework NGEN v4.0.30319" -TaskPath "\Microsoft\Windows\.NET Framework\" | Format-List * |
唤醒计划-实例 | Get-ScheduledTask -TaskName ".NET Framework NGEN v4.0.30319" -TaskPath "\Microsoft\Windows\.NET Framework\" | Select-Object TaskName, State |
唤醒计划-禁用 | Disable-ScheduledTask -TaskName "Printer Health Monitor" -TaskPath "\HP\HP Print Scan Doctor\" |
唤醒计划-启用 | Enable-ScheduledTask -TaskName "Printer Health Monitor" -TaskPath "\HP\HP Print Scan Doctor\" |
唤醒计划-删除 | Unregister-ScheduledTask -TaskName "Printer Health Monitor" -TaskPath "\HP\HP Print Scan Doctor\" -Confirm:$false |
唤醒计划-注册 | Unregister-ScheduledTask -TaskName "Printer Health Monitor" -TaskPath "\HP\HP Print Scan Doctor\" -Confirm:$false |
电源状态控制 |
休眠-关闭 | powercfg -hibernate off |
电源计划 |
电源计划-查看列表 | powercfg –list |
电源计划-导出 | powercfg -export D:\SysgeekScheme.pow GUID |
电源计划-导入 | powercfg -import D:\syncRepos\iniDevice\ThinkPadT480s\电源计划\catsleep.pow |
电源计划-删除 | powercfg /D 11939c3a-722c-44f3-9c96-765ca6be57e6 |
电源计划-改名 | Powercfg –Changename GUID 新名称 |
电源计划-切换 | powercfg -setactive GUID |
电源计划-重置 | powercfg -restoredefaultschemes |