Reputation: 22327
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?
Upvotes: -1
Views: 2033
Reputation: 4325
Powercfg is located usualy: C:\Windows\System32\powercfg.exe Did you mean windows powercfg tool yes?
Upvotes: 0