$drive = (New-Object -com scripting.filesystemobject).getdrive($share)
[math]::Round($drive.TotalSize / 1GB,0)
[math]::Round($drive.FreeSpace / 1GB,0)
$shareは共有名であってpathは含められにゃい。www.amazon.co.jp##.s-result-item:has([class*="s-sponsored-label-info-icon"])