Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

cmdlet with Multiple output objects

$
0
0

Hi,

 

I'm building a script that uses the PS4.0 cmdlet: Test-Cluster.

In the documentation (http://technet.microsoft.com/en-us/library/hh847274.aspx ) 
I found that it has 2 output objects;

  • System.IO.FileInfo
  • Microsoft.FailoverClusters.PowerShell.ClusterTestInfo

Now I run the cmdlet and put the output in a variable

$result = Test-Cluster

I do a get-member on the result; 

$result | Get-Member

I get typename; System.IO.FileInfo

 

How do I access the Microsoft.FailoverClusters.PowerShell.ClusterTestInfo object?

 

Thanks in advance,

/S



Viewing all articles
Browse latest Browse all 15028

Trending Articles



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