locked
Powercfg import and activate? RRS feed

  • Question

  • Hi @all,

    i have a problem in Windows 7.

    When i import a pow-file (Profil-Name powerprofile ) everytime it will create a new guid number.

    so i cant activate it automaticly cause first i dont know the guid number

    so i created a batch with the following command

    powercfg -import power.pow

    for /f "tokens=1,2,3,4,* delims= " %a in ('powercfg /list ^|^ findstr /i "powerprofile"') do ( powercfg /setactive "%d")

    this works fine but i hope there is a better solution for it.

    THX for HELP

    Wednesday, October 30, 2013 2:19 PM

Answers

All replies