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?
LVL 1
jcreswellAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.