Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

Powershell query to get disk usage

$
0
0

I know I can get disk sizes like this:

$class = get-scomclass -name "Microsoft.Windows.Server.LogicalDisk"
$instances = Get-SCOMClassInstance -Class $class
$instances.'[Microsoft.Windows.Server.LogicalDisk].Size'.value
But is there any way to get used size? It would be really useful.



Viewing all articles
Browse latest Browse all 11941

Trending Articles



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