Skip to main content

 none
Powercfg functions instead cmd calls RRS feed

  • Question

  • Hello I'm looking for nicer way to use powercfg functions instead of cmd command line

    For example I got this line:

    powercfg -setacvalueindex scheme_current sub_processor 0cc5b647-c1df-4637-891a-dec35c318583 100

    Its disables for current power plan core parking(at least the source tells).

    Function I used:

    Process.Start("powercfg", "-setacvalueindex scheme_current sub_processor 0cc5b647-c1df-4637-891a-dec35c318583 100");

    Function works all ok, but I read in msdn docs that you can use functions instead of calling process.start()

    But I couldn't find that would match. Anyone could help?


    • Edited by speed258 Tuesday, April 10, 2018 10:27 AM
    Tuesday, April 10, 2018 10:26 AM

All replies