Where is powercfg located?

1.8k Views Asked by At

I need to use the powercfg tool from my service and I was curious, if it was safe to call it as such:

powercfg <parameters>

instead of providing a full path to it. The reason I'm thinking about it is that I keep reading security warnings in Microsoft's documentation that "an attacker" can place a rogue powercfg into the folder with my process's executable that may be called instead of the real powercfg.

The question then is where powercfg located?

1

There are 1 best solutions below

1
On

Powercfg is located usualy: C:\Windows\System32\powercfg.exe Did you mean windows powercfg tool yes?