powershell - How do I pull the time until sleep of the active power plan? -
i'm looking either powershell script or command allows me active power plan's time until sleep.
in below example, know previous screen "balanced" active power plan. selecting that, gets screen can see info.
i've tried places in both wmi , registry, set guids , have pull active powerplan first. have tried powercfg
, various commands.
do have query active powerplan powercfg, parse response, guid, , query using result in registry or wmi?
looking guidance or code.
use powershell command find out current , active power plan.
gwmi -namespace root\cimv2\power -class win32_powerplan -filter isactive=’true’ | select elementname , description, instanceid
and use instanceid
query powercfg
powercfg /query <instanceid>
Comments
Post a Comment