Stop the system from entering standby mode?

How to change the default power scheme to prevent XP Pro machines from going into standby mode or prevent the standby mode completely (turn off in a device driver?) ?

I have found answers to similar questions, APIs, utilities to change user power profile but not exactly what I want. I need it to stay on, no Wake on LAN... just never go into standby.

This machine is unattended and sits in a server room and has been set (somehow, sometime ago) to go into standby mode after 1 hour by default when no profile is selected, so when the user logs off - 1 hour and I have to get into server room in person.


Solution 1:

You can use the POWERCFG.EXE program to configure power management. Power management settings prior to logon are a little dicey. I'd assign an AD startup script with the following in it to the computer:

for /f "usebackq tokens=2*" %i IN (`powercfg /query ^| find "Name"`) DO powercfg /change "%i" /standby-timeout-ac 0

That will determine the currently-selected power configuration profile name, and then assign the standby timeout when on AC power to 0 (which means "never").

If you can't run it as an AD Startup Script, you could try running it as SYSTEM by opening a command-prompt and doing an:

AT (time now + one minute) /interactive cmd

That will cause a SYSTEM command prompt to open in one minute (or less). If it doesn't open you probably didn't get it done in time. You can do an "AT" to see the queued scheduled jobs and see if it's set to "tomorrow" (meaning that you didn't make it in time).

I never remember if setting a power setting after logon, and then rebooting, causes that power setting to "stick" for the .DEFAULT user or not. It's a mess in Windows XP-- I know that. It gets better in Vista and beyond w/ group policy-based management of power settings.

If you want to get into a group-policy-based power management regime for your Windows XP machines in general, have a look at the US EPA's EZ_GPO power management tool: http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_ez_gpo

Solution 2:

control panel>power options (or you can right click on desktop>select properties>screensaver>power)

You can adjust all power settings from here. I also disable hibernate while I am in the area.