cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
njordur
Engaged Sweeper III
I konw I can always run this in powershell like below but it would be nice if I could also get free space from the mount points in the database by adding the win32_volume class.

$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)}}

function get-mountpoints {
$volumes = Get-WmiObject -computer $server win32_volume #| Where-object {$_.DriveLetter -eq $null}
$volumes | Select SystemName, Label, DriveLetter, $TotalGB, $FreeGB, $FreePerc | Format-Table -AutoSize
}

$servers = @('server01','server02','server05','server06','server10','server11','server12','server15','server16','server17','server18')

foreach ($server in $servers){
get-mountpoints
}
1 REPLY 1
Susan_A
Lansweeper Alumni
Added to the wish list!