/build/static/layout/Breadcrumb_cap_w.png

Power Settings

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

Answers (5)

Posted by: smsguy 16 years ago
Senior Yellow Belt
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
Posted by: Thegunner 16 years ago
Second Degree Green Belt
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.
Posted by: anonymous_9363 16 years ago
Red Belt
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
Posted by: Inabus 16 years ago
Second Degree Green Belt
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
Posted by: Thegunner 16 years ago
Second Degree Green Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ