I need to run a batch file, with a series of powercfg commands to duplicate the currently active scheme and rename it.
Manually, I would do something like this at the command prompt.
powercfg -getactivescheme
This would give me the GUID of currently active scheme.
powercfg -duplicatescheme <GUID obtained above> <new GUID>
Ideally, I would want to do something like this...
powercfg -duplicatescheme -getactivescheme <new GUID>
But since this isn't allowed, is there another way?