Open jamesmarkchan opened 7 months ago
can try PowerShell:
Get-Volume | ForEach-Object {
$freeSpace = $_.FreeSpace / 1GB -as [Math]::Round
$totalSpace = $_.TotalSize / 1GB -as [Math]::Round
$driveLetter = $_.DriveLetter
Write-Host "$driveLetter: ($freeSpace GB free, $totalSpace GB total)"
}
or
Get-WmiObject Win32_LogicalDisk -Filter "DriveType = 3" | ForEach-Object {
$freeSpace = $_.FreeSpace / 1GB
$totalSpace = $_.Size / 1GB
$driveLetter = $_.DeviceID
Write-Host "$driveLetter: ($freeSpace GB free, $totalSpace GB total)"
}
This also doesn't look right, this was seen after reimaging my PC
The fsutil tool output text will vary for non english OS settings:
and cause usage and capacity to not report correctly. This is was discovered from Albert's test...
Need to find a solution that scales. Maybe can just omit capacity reporting for non English usage or add support for different languages.