Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Change Power Button Action via script or API call

$
0
0

Hi, I was wondering if there was an automated way to run a script to change the power settings in Windows XP Home/Pro via a single script. Powercfg.exe works for general power settings, but can't change advanced options, like what to do when the user presses the power button. I'd like to make a script, or if I have to, write a program to call some Windows API that can change this setting. I've searched all over to no avail... This will be executed under an Administrator account, and I'm not looking for solutions using Group Policies (unless I can double click a script that will do everything automatically). Thanks for any help!

-Eric


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>