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.
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.
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- homebuilt & dell & sgi
- OS
- Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
- CPU
- intel & amd
- Motherboard
- yes
- Memory
- yes
- Graphics Card(s)
- gtx970
- Sound Card
- same as memory
- Monitor(s) Displays
- benq 27"
- Screen Resolution
- 2560*1440
- Hard Drives
- many