• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

Stop Internal Hard Drive

Is there a script I can use to activate the Power Management feature of shutting off the internal hard drive(s) on my computer?

I share a bedroom with the system, and the disks emit a high pitched whine, and instead of setting power management to "Shut off hard disks after 1 minute of inactivity" each night, and then resetting it to a higher value every morning when I wake up, I'd like to be able to double click a script to turn off the drives, and go to bed.

Any ideas?
0
jcreswell
Asked:
jcreswell
1 Solution
 
jcreswellAuthor Commented:
I am using XP SP2, sorry for leaving that out.
0
 
sunilcomputerCommented:
POWERCFG /SETACTIVE 0 /N
Here is the required Script :-
Save below scripts in two batch files with extension *.bat
Whenever you need to set power management just run these scripts.
Night.bat is for Night and Day.bat is for Day use.

Script for Night :- night.bat

@ECHO OFF
POWERCFG /SETACTIVE 1 /N
POWERCFG /HIBERNATE ON
POWERCFG /X 1 /N /monitor-timeout-ac 0
POWERCFG /X 1 /N /monitor-timeout-dc 5
POWERCFG /X 1 /N /disk-timeout-ac 3
POWERCFG /X 1 /N /disk-timeout-dc 10
POWERCFG /X 1 /N /standby-timeout-ac 0
POWERCFG /X 1 /N /standby-timeout-dc 10
POWERCFG /X 1 /N /hibernate-timeout-ac 0
POWERCFG /X 1 /N /hibernate-timeout-dc 30
POWERCFG /X 0 /N /processor-throttle-ac none
POWERCFG /X 0 /N /monitor-timeout-ac 0
POWERCFG /X 0 /N /monitor-timeout-dc 5
POWERCFG /X 0 /N /disk-timeout-ac 3
POWERCFG /X 0 /N /disk-timeout-dc 10
POWERCFG /X 0 /N /standby-timeout-ac 0
POWERCFG /X 0 /N /standby-timeout-dc 10
POWERCFG /X 0 /N /hibernate-timeout-ac 0
POWERCFG /X 0 /N /hibernate-timeout-dc 30
POWERCFG /B critical /ACTIVATE on /LEVEL 3 /TEXT ON /SOUND ON /FORCEACTION ON /ACTION HIBERNATE
POWERCFG /B low /ACTIVATE ON /LEVEL 10 /TEXT ON /SOUND ON /ACTION NONE
POWERCFG /G ON /OPTION VIDEODIM
POWERCFG /G ON /OPTION BATTERYICON
POWERCFG /G ON /OPTION MULTIBATTERY
POWERCFG /G ON /OPTION RESUMEPASSWORD
POWERCFG /X 0 /N /processor-throttle-dc adaptive
POWERCFG /X 1 /N /processor-throttle-ac none
POWERCFG /X 1 /N /processor-throttle-dc adaptive
REM ======================================END OF FILE.


Script for Day :- Day.bat

@ECHO OFF
POWERCFG /SETACTIVE 1 /N
POWERCFG /HIBERNATE ON
POWERCFG /X 1 /N /monitor-timeout-ac 0
POWERCFG /X 1 /N /monitor-timeout-dc 5
POWERCFG /X 1 /N /disk-timeout-ac 0
POWERCFG /X 1 /N /disk-timeout-dc 10
POWERCFG /X 1 /N /standby-timeout-ac 0
POWERCFG /X 1 /N /standby-timeout-dc 10
POWERCFG /X 1 /N /hibernate-timeout-ac 0
POWERCFG /X 1 /N /hibernate-timeout-dc 30
POWERCFG /X 0 /N /processor-throttle-ac none
POWERCFG /X 0 /N /monitor-timeout-ac 0
POWERCFG /X 0 /N /monitor-timeout-dc 5
POWERCFG /X 0 /N /disk-timeout-ac 0
POWERCFG /X 0 /N /disk-timeout-dc 10
POWERCFG /X 0 /N /standby-timeout-ac 0
POWERCFG /X 0 /N /standby-timeout-dc 10
POWERCFG /X 0 /N /hibernate-timeout-ac 0
POWERCFG /X 0 /N /hibernate-timeout-dc 30
POWERCFG /B critical /ACTIVATE on /LEVEL 3 /TEXT ON /SOUND ON /FORCEACTION ON /ACTION HIBERNATE
POWERCFG /B low /ACTIVATE ON /LEVEL 10 /TEXT ON /SOUND ON /ACTION NONE
POWERCFG /G ON /OPTION VIDEODIM
POWERCFG /G ON /OPTION BATTERYICON
POWERCFG /G ON /OPTION MULTIBATTERY
POWERCFG /G ON /OPTION RESUMEPASSWORD
POWERCFG /X 0 /N /processor-throttle-dc adaptive
POWERCFG /X 1 /N /processor-throttle-ac none
POWERCFG /X 1 /N /processor-throttle-dc adaptive
REM====================================END OF FILE.


The min value for "Turn Off Hard Disk" feature is 3 Minutes. Set other values as required.
AC = When system runs on Electricity power
DC = When system runs on Baterries.

More Details :- http://support.microsoft.com/?kbid=324347
0
 
nobusCommented:
why not simply shut down the system, and reboot in the morning?
it saves energy, and resets all software
0
 
speak2abCommented:
Giving any device time to rest also reduces the depreciation of the components and the system as a whole. So I go with nobus here.

but if you are still particular about the script try this site

http://forum.landesk.com/showthread.php?s=3e614b88d52223346ece90ca7d4d8514&postid=24092#post24092

this site also gives some already made softwares for power management available for download

http://www.topshareware.com/guide/hot/power.htm
0
 
Bishop_2006Commented:
Again, shutting the computer down seems like the logical explanation.  If you're using the machine to download overnight then you're just gonna have to endure the hdd's continually starting and stopping, which would probably be more annoying than having them running permanently, and certainly bad for the life of the disks.  Invest in a pair of earplugs, and/or silicon mounts for the hdd if its that important to you.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now