views:

46

answers:

0

In OS's like WS2008R2 and its compliment 7, I need to hibernate one (of two) hard drives. The hard drive in question gets hot (cos its old) and is only used to write images of the main HD too once a week.

I would like to issue it a "sleep" or "hibernate" command.

Also, I dont want it to wake up when unless an app is needs to read/write to it, meaning is the partition file table cached in these OS's?

Added:

The other thread did not answer the question.

I do not want a tool, I need to write code

Notwithstanding the arguments against doing this

WMI might be the way to go does anyone know?

From what i understand IOCTL_ATA_PASS_THROUGH will not do it.

Ideally I would like to access the power management controls directly but it is unclear if this can be done programmatically without using a Windows Group Policy

Ill take code in any language at this point....