New
#1
powercfg command and random GUID with setactive help windows 7
in windows 7 i created a power plan and exported it as 'custom.pow' with the powercfg command.
I'm trying to create a .bat file using powercfg, such as
> powercfg -import %CD%\custom.pow
> powercfg -setactive <GUID>
the catch is the setactive flag wants a GUID and not the file custom.pow.
what I've done so far is run powerfg import manually on a system and generated a random GUID, then copied that GUID into my script. Is that ok to do in the long run?
or is there a better way to do it?
i don't know how to take the output of the "powercfg -import" command that gives me the random GUID and use that in the following "powercfg -setactive" command.