Hello,
I am utilizing the command line for this. In Vista, you have to know the profile name or GUID before you can edit the setting.
I know that I can get that by utilizing powercfg -getactivescheme however when I do that I get returned:
Power Scheme GUID: 49ef8fc0-bb7f-488e-b6a0-f1fc77ec649b (Dell Recommended) which will be different for every computer.
All I need is the
49ef8fc0-bb7f-488e-b6a0-f1fc77ec649b
How would I capture just that in a variable?
I was thinking about the following code however it comes back as missing an operand. Any help would be much appreciated.
Code:
@echo off
For /F "Tokens=*" %%A In ('powercfg -getactivescheme^|Findstr /I /C:": "') Do Set /A _ActiveScheme=%%B
powercfg -SETACVALUEINDEX %_ActiveScheme% SUB_NONE CONSOLELOCK 0
powercfg -SETDCVALUEINDEX %_ActiveScheme% SUB_NONE CONSOLELOCK 0 Wayne Leiser, CTO
Spectacular Computer Repair