• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5980
  • Last Modified:

Script to disable sleep mode in Vista and XP

Hi Guys

I'm using a software that deploy patches to vista and XP machines once a week and the bigest issue I have now is that the patches get deploy at 3 AM on Saturday and most of the desktop machines are on sleep or hybernate mode at that time so the patch fail to install. I want to create a script that disable the sleep mode on both vista and XP machines so they stay on during the patch deployment. I have the feeling that is just a registry key change but I can't figure it out were I can find it.
Any idea?
Thank you
0
intelglobe
Asked:
intelglobe
  • 4
  • 4
1 Solution
 
cmcawoodCommented:
If you are on a domain, you could do this via group policy.  Do you want to permanently disable or just temporarily disable?
0
 
intelglobeAuthor Commented:
Well I was thinking to disable on Friday morning and enable back again on Monday after the patch are deploy but i'm afraid that will complicate things more so I think the safest way will be to permanetly disable and see if the users make any complaints.
0
 
intelglobeAuthor Commented:
Sorry I forgot to mention that some customer are on teh domain and some are just on a workgroup
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
and235100Commented:
Use powercfg in a batch file?

@echo off
powercfg /change "Always On" /standby-timeout-ac 0
powercfg /change "Always On" /hibernate-timeout-ac 0
powercfg /setactive "Always On"
0
 
and235100Commented:
0
 
intelglobeAuthor Commented:
Thank you. That work.
0
 
intelglobeAuthor Commented:
I also try to change it on Group policy so I create an OU for the machines that need to be change and mouve them in that OU. Can't find the place were I can disable it. I already look under Local Computer policy, System but I can't find anything about Power settings. This is under a Windows 2003 DC and I need to have the policy work with both Vista and XP
Thank you
0
 
and235100Commented:
XP/2003 doesn't have native adm's to control power settings - server 2008/vista policies are available.
http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_ez_gpo is the closest you are going to get.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now