Working on a Caffinate Alternative for Windows and was wondering if there was a way I could grab just the GUID of the current used powerplan without the rest of the output heres a example of what I mean.
What I am getting... when using powercfg /list
Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) *
What I want...
381b4222-f694-41f0-9685-ff5bb260df2e
This is so I can refrence it and reload it in once caffinate is finished.
If you want other guids from the list, simply substitute
Balanced
High performance
orPower saver
(or whatever else you may need) for*