We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Stop Internal Hard Drive

jcreswell
jcreswell asked
on
Medium Priority
386 Views
Last Modified: 2012-05-05
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?
Comment
Watch Question

Author

Commented:
I am using XP SP2, sorry for leaving that out.
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
why not simply shut down the system, and reboot in the morning?
it saves energy, and resets all software

Commented:
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
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.