Set Hard Disk Timeout using PowerCFG command line

Press the Windows key, and type CMD until Command Prompt appears. Then, right-click on it, and choose to run with admin privileges. Then type the following command with in number.

How long to wait before turning off disks while plugged in

or

How long to wait before turning off disks while on battery

or If you use 0 (zero) minutes or seconds will be the same as “Never”.  The Windows default data value is 1200 seconds or 20 minutes. That said, you can create a shortcut of this and set this quickly. The other option is to save the command in notepad and save it as a BAT file. If you want to change it through Windows Settings manually, it is available with the Advanced power configuration. Along with this, you can also change other factors through the user interface. I hope you have learned how to quickly set hard disk timeout using the powercfg command line in Windows 11/10. It is always a good idea to set up a timeout for the hard disk to increase its life, however, configure the timeout based on your work requirement. You do not want the disk to time out in the middle of something.

Set Hard Disk Timeout using PowerCFG command line in Windows - 48