$AllVolume = Get-WmiObject Win32Volume | Where-Object {$.Label -ne "系统保留"}
$Data = @()
Foreach($Volume in $AllVolume)
{
$Data +=[PSCustomObject]@{
名称 = $Volume.Label
"剩余空间(GB)" = [int]$FreeSpace = $Volume.FreeSpace/1GB
"总大小(GB)" = [int]$Size = $Volume.Capacity/1GB
"使用率%" =[int]$Usage = $Volume.FreeSpace/$Volume.Capacity*100
}

}