<#
 .Name
    get-diskinfo
 .Example
    PS C:\sicrping> .\diskinfo.ps1 -computername localhost

        DeviceID FreeDB SizeDB
        -------- ------ ------
        C:            7     48
        D:           37     63
        E:          693    931

 #>
 
 [cmdletbinding()]
 param(
        [string]$computername=''

 )
Get-WmiObject -ComputerName $computername -class win32_logicaldisk | select DeviceID,`
@{n='FreeDB';e={$_.freespace / 1gb -as [int]}},`
@{n='SizeDB';e={$_.size / 1gb -as [int]}}