hdparm for Windows (NT/2000/XP/2003/Vista, native/cygwin)

hdparm is a command line utility for the Linux operating system to set and view IDE hard disk hardware parameters. It can set parameters such as drive caches, sleep mode, power management, acoustic management, and DMA settings.

hdparm port for Windows was made possible by emulating HDIO_DRIVE_CMD ioctl function by using SCSI/IDE/ATA-passthrough APIs on Windows NT4/2000/XP.
This port isn't full featured hdparm but allows you to modify some ATA-harddisk settings that are otherwise difficult to modify under Windows.

Usage:  hdparm.exe  [options] [device] ..

Options:
 -A   set drive read-lookahead flag (0/1)
 -B   set Advanced Power Management setting (1-255)
 -C   check IDE power mode status
 -D   enable/disable drive defect management
 -h   display terse usage information
 -H   read temperature from drive (Hitachi only)
 -I   detailed/current information directly from drive
 --Istdin  read identify data from stdin as ASCII hex
 --Istdout write identify data to stdout as ASCII hex
 -K   set drive keep_features_over_reset flag (0/1)
 -P   set drive prefetch count
 -q   change next setting quietly
 -s   set power-up in standby flag (0/1)
 -S   set standby (spindown) timeout
 -t   perform device read timings
 -T   perform cache read timings
 -v   defaults; same as -mcudkrag for IDE drives
 -V   display program version and exit immediately
 -W   set drive write-caching flag (0/1) (DANGEROUS)
 -X   set IDE xfer mode (DANGEROUS)
 -y   put IDE drive in standby mode
 -Y   put IDE drive to sleep
 -Z   disable Seagate auto-powersaving mode
 (ATA security commands were unavailable at build time)
 Win32 notes: device name can be given in as following formats
    linux style: /dev/hd[a-j]
    win32 style: \\.\PhysicalDrive[0-9]
    for ide-cdrom use following (replace E with drive letter):
       \\.\E:

Download win32 binary: hdparm-6.9-win32-bin.zip
Download patch: hdparm-6.9-win32.patch