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,
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)
Please log in to answer
Posted by:
smsguy
16 years ago
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
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
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.
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
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
Posted by:
Thegunner
16 years ago
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.
so that the conversation will remain readable.