powercfg

  • Thread starter Thread starter Jeremy
  • Start date Start date
J

Jeremy

I want to run some commands using powercfg in my user's
login script, or in a startup batch file. The problem
being that ordinary users are not allowed to set power
options so the scripts run, but fail to execute as a user.
I looked at using RUNAS but the user would have to have an
admin password. I know I can set the registry in a couple
of places to allow this but I would have to do that as
every user and if I do it in a script file it will fail
due to restrictions. Is there a way to lead my powercfg
commands with a line that gives the user authority and
then after the commands I can take it away again? Any help
or ideas are greatly appreciated. Thanks
 
Back
Top