Chris.Casey Posted December 5, 2005 Posted December 5, 2005 Morning All,We have a problem that PC's that are on a slow network connection do not seem to pick up the domain policy on the power options that we have set.This causes problems as some of these pc's have software on them that needs to be backed up and it isn't as the pc is in standby mode.Is there a registry edit / batch command that can set the power options or does it have to be done manually?The options I want to use are:Turn off Monitor: 30 minsTurn off hard disks: NeverSystem standby: NeverAlso to disable the hibernation.Any help greatly appreciated.Thanks.Title Edited - Please follow new forum rules from now on-- Martin L
Fencer128 Posted December 5, 2005 Posted December 5, 2005 (edited) Hi,To disable hibernate, you can use these registry settings:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00Good luck,Andy Edited December 5, 2005 by Fencer128
Sonic Posted December 5, 2005 Posted December 5, 2005 (edited) For current user only, I have set my options and I have exported the key in Policie ..;Mise en veille du moniteur au bout de 20 minutes[HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy]"Policies"=hex:01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,01,00,00,00,03,00,00,00,00,00,00,00,04,00,00,c0,01,00,00,00,02,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,00,10,00,00,00Same as what you want but with monitor to 20min@Fencer128:You can just use [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]"Heuristics"=hex& #58;05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00EDIT: You must force the value to ONE line because forum brokes lines ... Edited December 5, 2005 by sonic
Chris.Casey Posted December 5, 2005 Author Posted December 5, 2005 Thanks Guys. Can you add registry edits to logon scripts so whenever a user logs on it will change the registry setting.Need to do this without it prompting if possible.Thanks.
Sonic Posted December 5, 2005 Posted December 5, 2005 yes you can add at logon script .. with regedit /s YourRegFile.reg or reg import YourRegFile.reg
No6 Posted December 5, 2005 Posted December 5, 2005 PowerCfg.exe is another alternative. I prefer it to the massive registry entries.
nakira Posted December 5, 2005 Posted December 5, 2005 Here's a .cmd which resets the values@echo offfor /f "skip=2 tokens=1,2" %%a in ('powercfg /q') do if %%a equ Name set sch=%%bpowercfg /x %sch% /monitor-timeout-ac 30powercfg /x %sch% /disk-timeout-ac 0powercfg /x %sch% /standby-timeout-ac 0
Chris.Casey Posted December 30, 2005 Author Posted December 30, 2005 I'm now having a problem with the PC hibernating when it is left at CTRL ALT DEL.Any thoughts?Cheers.
nmX.Memnoch Posted December 30, 2005 Posted December 30, 2005 Add this to your logon script:powercfg /hibernate offThey may need admin privs to do that though.
Chris.Casey Posted January 3, 2006 Author Posted January 3, 2006 Yeah, it needs admin priviliges to do that.I also want it to be able to amend the power settings without anyone having to log on.Any other ideas?
nmX.Memnoch Posted January 3, 2006 Posted January 3, 2006 Actually...I came across this freeware application the other day called BeyondExec.http://www.beyondlogic.org/solutions/remot.../BeyondExec.htmIt allows you to spawn processes on a remote machine, provided you have Admin privs on that machine of course. You could take care of the hibernation issue by passing a simple command to each machine:beyondexecv2.exe \\computername -s -r powercfg /hibernate offThe -s tells it to run under the SYSTEM account. The -r tells it to remove the BeyondExec service when the command completes.Fortunately, hibernation is a workstation level setting so you only have to do it once per machine.
Chris.Casey Posted January 9, 2006 Author Posted January 9, 2006 Is there any way you can amend power options so that they will be the default options for the entire pc. Not just user specific?
Sonic Posted January 9, 2006 Posted January 9, 2006 To apply for all users you can run your command in cmdlines.txt .. but it's not machine dependant ...@all:Is it possible to disable the Sleep button (in french "Mise en veille") .. same effect as non-installed graphic drivers ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now