格式所有未初始化磁盘(除系统磁盘)。
[code]$newDiskCount = $DiskCount = ((Get-WmiObject -Class Win32_DiskDrive).Caption).count - 1for($i=1; $i -le $newDiskCount; $i++){initialize-disk -number $inew-partition -Disknumber $i -usemaximumsize -AssignDriveLetter | format-volume -confirm:$false}