Home Dashboard Directory Help
Search

New-CimSessionOption OutputType by Shay Levi


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 780765
Opened: 3/6/2013 1:21:57 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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


Details
Sign in to post a comment.
Sign in to post a workaround.