Hi all,

I have been playing around with the power setting in control panel, I need to set all the options to never through the registry. I see there is a policy which is all in binary. Is there another way or a way I can change it so all the option are set to Never.

Regards,
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
hey

havent tried it myself but its meant to work.

Get powercfg.exe
http://support.microsoft.com/kb/324347

Look up the switches you want - then just a simple batch file like this should do it

(this should set to always on, and turn the hdd off after 30mins

@echo off
net use x: \\domain.com\netlogon
x:
powercfg.exe /change "always on" /disk-timeout-ac 30
powercfg.exe /SETACTIVE "always on"
c:
net use x: /delete
Answered 10/27/2008 by: smsguy
Senior Yellow Belt

Please log in to comment
0
Hey,

Cheers for replying, I have come across that, but so far have not used it.

I was hoping I could just change a digit in the binary section to make it say Always instead of 20mins.

I know there are setting in the registry that change under the HKLM and HKCU and I have exported them, but it does update the machine I am moving it to.
Answered 10/27/2008 by: Thegunner
Second Degree Green Belt

Please log in to comment
0
Use a WMI-based script. Much cleaner than using command tools, you can trap errors and branch accordingly. I'm sure you'll find a sample on somewhere like http://www.computerperformance.co.uk
Answered 10/28/2008 by: VBScab
Red Belt

Please log in to comment
0
I know it isnt possible to change power settings via Registry as I looked for it in my last job. It was a few years ago so tbh I could of missed something during my long hours of searching for a way to do this, incidently I ended up using powercfg.

P
Answered 10/28/2008 by: Inabus
Second Degree Green Belt

Please log in to comment
0
ORIGINAL: smsguy

hey

havent tried it myself but its meant to work.

Get powercfg.exe
http://support.microsoft.com/kb/324347

Look up the switches you want - then just a simple batch file like this should do it

(this should set to always on, and turn the hdd off after 30mins

@echo off
net use x: \\domain.com\netlogon
x:
powercfg.exe /change "always on" /disk-timeout-ac 30
powercfg.exe /SETACTIVE "always on"
c:
net use x: /delete







What I have done so far is the follow in a batch file.

powercfg /change "Presentation" /disk-timeout-ac 0
powercfg /change "Presentation" /standy-timeout-ac 0
powercfg /change "Presentation" /monitor-timeout-ac 0

exit


My understanding so far, if I use powercfg /SETACTIVE "Presentation" this will make the pc use the Presentation power mode. All good, I will give it a go.
Answered 10/28/2008 by: Thegunner
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity