December 5, 200520 yr 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
December 5, 200520 yr 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, 200520 yr by Fencer128
December 5, 200520 yr 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, 200520 yr by sonic
December 5, 200520 yr Author 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.
December 5, 200520 yr yes you can add at logon script .. with regedit /s YourRegFile.reg or reg import YourRegFile.reg
December 5, 200520 yr PowerCfg.exe is another alternative. I prefer it to the massive registry entries.
December 5, 200520 yr 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
December 30, 200520 yr Author I'm now having a problem with the PC hibernating when it is left at CTRL ALT DEL.Any thoughts?Cheers.
December 30, 200520 yr Add this to your logon script:powercfg /hibernate offThey may need admin privs to do that though.
January 3, 200620 yr Author 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?
January 3, 200620 yr 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.
January 9, 200620 yr Author 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?
January 9, 200620 yr 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 ?
Create an account or sign in to comment