Hello,
I have a question about the Object Type returned by the Get-Member command.
I have the following code:
$svc = get-service # stores a collection of service objects(System.ServiceProcess.ServiceController) in the svc variable
$svc | Get-Member #returns TypeName: System.ServiceProcess.ServiceController
Get-Member -InputObject $svc # returns TypeName: System.Object[]
Why does Get-member returns two different type of object for the content of the same variable?