Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

WMI Logical FreeSpace and Size

$
0
0

I trying to run this command but free and size property is not showing anything.

Get-WmiObject -Class Win32_logicaldisk -Filter 'drivetype = 3' | Select @{N='Free';Ex={'{0:N1}' -f  $_.freespace /1gb }},@{N='Size';Ex={'{0:N1}' -f  $_.Size /1gb }}


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>