电源管理

功能命令
请求电源的任务
电源任务-查询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