New-CimSessionOption OutputType - by Shay Levi

Status : 


Sign in
to vote
ID 780765 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 3/6/2013 1:21:57 AM
Access Restriction Public


The OutputType property of the New-CimSessionOption cmdlet outputs a  CimSessionOptions object:

PS> Get-Command New-CimSessionOption | fl OutputType

OutputType : {Microsoft.Management.Infrastructure.Options.CimSessionOptions}

But when you supply different Protocol values you will get different output types, and CimSessionOptions is not one of them:

PS> New-CimSessionOption -Protocol Dcom | gm

   TypeName: Microsoft.Management.Infrastructure.Options.DComSessionOptions

# wsman or default
PS> New-CimSessionOption -Protocol Wsman | gm
   TypeName: Microsoft.Management.Infrastructure.Options.WSManSessionOptions 

Sign in to post a comment.