I am writing a Powershell script to collect statistics on a couple different things and write to a centralized location.
I tried to do the following:
$storage_pool_stats = Get-StoragePool
$virtual_disk_stats = Get-VirtualDisk
but the results are (ObjectId = "{1}\SERVERNAME\root/Microsoft/Windows/Sto...) instead of the FriendlyName/OperationalStatus/HealthStatus data that is printed to the console when I run "Get-StoragePool"
Does anybody know what I'm doing wrong?