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