wmic
command, I want to get only the serial number of the hard drive which has this partition, not the serial of the hard drive with the E partition.c:
| fl Caption,Name,DeviceID,SerialNumber
from the above and just leave $vol
on that line instead.