Control USB drives

Everything else that doesn't fall into one of the other PB categories.
User avatar
Posts: 911
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Control USB drives

Post by blueb »

I have a 5-outlet (powered) USB Hub on a Win10 Pro machine.

I would like to connect 3 USB (SATA) drives, and leave them connected.

Since they are not SSD's, I would like to control when they start spinning and when they stop spinning.

As it is right now, I notice the LED's "ON" and sometimes OFF (flashing). I think Windows is doing some cleanup in background mode.

One drive backs up my computer daily, next backs up the first drive daily, and the last one is a historical backup...twice a week.

As you can see, I don't want them spinning, if they are not actually in use.

So I'd like to write a small program to ask:

- Is drive spinning?

- Is drive in use?

- If the drive is idle

- Is it safe to shut down?

Basically force a start and if idle... force a shutdown of each drive would be nice.

I have looked a little in Powershell, and VBScript, but nothing solid.

Any ideas would be appreciated.
- It was too lonely at the top.

Current Machine: Win 10 Pro 64-bit, Dual Xeon E5-2670, 64 gigs ram, Geforce GTX 1660 Ti w/6 gigs ram