Diskpart detail disk with powershell

$DRIVELIST=(GET-DISKPARTINFO | WHERE { $_.Type –eq $TYPE –and $_.DiskSize -lt $MAX -and $_.DiskSize –gt $MIN })

$DRIVELIST | FOREACH {

$Source=”C:DeploymentContent”
$Destination=$_.DriveLetter

ROBOCOPY $Source $Destination /E

}

Leave a Comment