Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GPO / logon solution for power saving modes?

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
I know there are lots of fiddly solutions to this, and expensive ones too. But I was looking for noe that's free, and preferably that doesnt' require an endpoint installation/configuration (though if it was possible to just add to the logon script as a file copy then sobeit).

What I want is, as everyone wants fashionably nowadays, a GPO to govern settings that will turn off monitors and put pc's into sleep mode etc after certain timeout periods. Companies are bombarding you with adverts for expensive software that saves you $$$ a year based on the power savings you make by making sure these actions are carried out and systems aren't left on wastefully.

All input welcome :)

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
You can use powercfg.exe to export and import configuration files, or write directly command line statements and run them from a batch file. Or you can use it to script directly. Powercfg.exe works with Win2k, XP, and Windows 2003:
For example, the following .cmd file could be used for a portable computer:

POWERCFG /SETACTIVE 1 /N
POWERCFG /HIBERNATE ON
POWERCFG /X 1 /N /monitor-timeout-ac 0
POWERCFG /X 1 /N /monitor-timeout-dc 5
POWERCFG /X 1 /N /disk-timeout-ac 0
POWERCFG /X 1 /N /disk-timeout-dc 10
POWERCFG /X 1 /N /standby-timeout-ac 0
POWERCFG /X 1 /N /standby-timeout-dc 10
POWERCFG /X 1 /N /hibernate-timeout-ac 0
POWERCFG /X 1 /N /hibernate-timeout-dc 30
POWERCFG /X 0 /N /processor-throttle-ac none
POWERCFG /X 0 /N /monitor-timeout-ac 0
POWERCFG /X 0 /N /monitor-timeout-dc 5
POWERCFG /X 0 /N /disk-timeout-ac 0
POWERCFG /X 0 /N /disk-timeout-dc 10
POWERCFG /X 0 /N /standby-timeout-ac 0
POWERCFG /X 0 /N /standby-timeout-dc 10
POWERCFG /X 0 /N /hibernate-timeout-ac 0
POWERCFG /X 0 /N /hibernate-timeout-dc 30
POWERCFG /B critical /ACTIVATE on /LEVEL 3 /TEXT ON /SOUND ON /FORCEACTION ON /ACTION HIBERNATE
POWERCFG /B low /ACTIVATE ON /LEVEL 10 /TEXT ON /SOUND ON /ACTION NONE
POWERCFG /G ON /OPTION VIDEODIM
POWERCFG /G ON /OPTION BATTERYICON
POWERCFG /G ON /OPTION MULTIBATTERY
POWERCFG /G ON /OPTION RESUMEPASSWORD
POWERCFG /X 0 /N /processor-throttle-dc adaptive
POWERCFG /X 1 /N /processor-throttle-ac none
POWERCFG /X 1 /N /processor-throttle-dc adaptive


____________________________
Users Helping Users
 
Ah so you can create profiles and just apply them on logon? Brilliant, thanks. Why isn't this what's being pushed around to everyone now it's fashionable and profitable to be 'green' :p

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Powercfg.exe was first introduced with XP Service Pack 2, so perhaps people were not familiar with it.


____________________________
Users Helping Users
 
I've just setup using this script on logon for laptops on a site that wanted it''s settings changed. I combine it with a logon script call to res.exe ( to set the resolution to 1024 * 768 32bpp and also with a GPO to set the screensaver timeout to 20 minutes. I changed your example script so that batterymode for both modes 0 and 1 have screenoff at 20m, harddisks off at 30m, standby at 45m and hibernate at 60m.

Bit messy but hopefully everything is covered with that lot

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top