Quick command prompt question

VaguelyRapt

Electrosexual
Power User
So I'm trying to get to all those power settings hidden deep inside the advanced settings that can't be easily reached or manipulated using my keyboard (such as the processor min/max state).

So far, I've got this:
Code:
powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 7516b95f-f776-4464-8c53-06167f40cc99 aded5e82-b909-4619-9949-f5d71dac0bcb %1
powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 7516b95f-f776-4464-8c53-06167f40cc99 aded5e82-b909-4619-9949-f5d71dac0bcb %1
powercfg -s 381b4222-f694-41f0-9685-ff5bb260df2e
This sets the display brightness on the Balanced scheme. The thing is, I would like to set it on the current scheme, without needing to use any scheme in specific. I know the command powercfg -getactivescheme will return the GUID of the current scheme, which is exactly what I need, but how can I implement that in a batch file?

I tried:
Code:
[I]set var_currentscheme[/I] = powercfg -getactivescheme
powercfg -setacvalueindex [I]%var_currentscheme[/I]% 7516b95f-f776-4464-8c53-06167f40cc99 aded5e82-b909-4619-9949-f5d71dac0bcb %1
But %var_currentscheme% always comes up empty...
 

My Computer

System One

  • Manufacturer/Model
    HP dv5-1120ej Notebook PC
    CPU
    Intel Dual 2.16GHz
    Memory
    4GB
    Graphics Card(s)
    NVidia GeForce 9200M GS, 256MB
    Hard Drives
    320GB internal, 320GB external, 1TB external to come (big download library XD)
    Internet Speed
    Fast enough
    Other Info
    Firefox, Foobar, and AutoHotkey! Go open source!
Back
Top