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?
Greg GirtenDesktop Engineer IIAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

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

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
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.
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??
Greg GirtenDesktop Engineer IIAuthor Commented:
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 site for a utility called EZ GPO

this utility appears to allow management of power options via gpo in XP... will require download of 3rd party tool (free)
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.