Public/Get-Mountpoints.ps1
function Get-Mountpoints { $TotalGB = @{Name = "Capacity(GB)"; expression = { [math]::round(($_.Capacity/ 1073741824), 2) } } $FreeGB = @{Name = "FreeSpace(GB)"; expression = { [math]::round(($_.FreeSpace / 1073741824), 2) } } $FreePerc = @{Name = "Free(%)"; expression = { [math]::round(((($_.FreeSpace / 1073741824)/($_.Capacity / 1073741824)) * 100), 0) } } $volumes = Get-WmiObject win32_volume | Where-Object { $_.DriveLetter -eq $null } $volumes | Select-Object SystemName, Label, $TotalGB, $FreeGB, $FreePerc } |