How to push "Power Button" options via script.

I have 100 laptops I need to change the "When I close the lid of my computer" option from "Do Nothing" to "Stand by". Is there anyway to push this option via logon script or policy?
LVL 2
Greg GirtenDesktop Engineer IIAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Greg GirtenConnect With a Mentor Desktop Engineer IIAuthor Commented:
I found this on google answers. It works perfect.

Change the setting using powercfg.cpl

Using Regedit, export the
[HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy]
Key into "Standby.reg":

Create batch StandbyMode.bat:
 regedit /s "StandbyMode.reg"
 rundll32.exe powrprof.dll,LoadCurrentPwrScheme

0
 
Derek Schauland (Microsoft MVP)IT ConsultantCommented:
We use an application called Desktop Authority to manage this.  It uses a logon script to set the actions for PCs.  There are sure to be other solutions out there that are cheaper or even free.

You might have a look at the following link
http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_powerconfig
0
 
Greg GirtenDesktop Engineer IIAuthor Commented:
We are a non profit so I must work with what I have. I use powerconfig to set the sleep mode and other switches, but it doesn't seem to work with the lid properties. I would like to find something like powerconfig that I could run from a script.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Derek Schauland (Microsoft MVP)IT ConsultantCommented:
Are you using group policy to manage the systems??
0
 
Greg GirtenDesktop Engineer IIAuthor Commented:
Yes
0
 
Derek Schauland (Microsoft MVP)IT ConsultantCommented:
According to a post on technet Vista supports GPO management of power options but earlier versions do not (at least out of the box).  The post sent me to the energystar.gov site for a utility called EZ GPO

http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_ez_gpo

this utility appears to allow management of power options via gpo in XP... will require download of 3rd party tool (free)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.