I've been using a USB hub to copy files to many flash drives. Afterwards, they need to be ejected. I don't want to eject them manually, one at a time.
How can I write a PowerShell script to eject all mass storage drives, without having to input the drive letters?
I searched all over and was not able to find a satisfactory answer that put it all together.
Here is the script that I came out with.
This worked very well!