There’s probs a better way to do this

$Drives = Get-WMIObject Win32_LogicalDisk -filter “DriveType=3” -computer $ComputerName

foreach ($D in $Drives) { [string]$Drive = $D.DeviceID $Drive = $Drive.replace(":", “$") dir \$ComputerName$Drive | select fullname }