fix not size for list storages windows
This commit is contained in:
parent
d63c1e898b
commit
088d66e750
|
@ -50,10 +50,16 @@ Try {
|
||||||
type = $disk.DriveType;
|
type = $disk.DriveType;
|
||||||
providername = $disk.ProviderName;
|
providername = $disk.ProviderName;
|
||||||
desc = $disk.VolumeName;
|
desc = $disk.VolumeName;
|
||||||
size = $disk.Size.toString();
|
size = $null;
|
||||||
freespace = $disk.FreeSpace.toString()
|
freespace = $null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($disk.Size -ne $null) {
|
||||||
|
$item.size = $disk.Size.toString()
|
||||||
|
}
|
||||||
|
if ($disk.FreeSpace -ne $null) {
|
||||||
|
$item.freespace = $disk.FreeSpace.toString()
|
||||||
|
}
|
||||||
$items.Add($item)
|
$items.Add($item)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue