Home Dashboard Directory Help
Search

get-credential fails to return an object when both Credential and Message parameters are used by Shane Wright


Status: 

Closed
 as By Design Help for as By Design


1
2
Sign in
to vote
Type: Bug
ID: 789997
Opened: 6/12/2013 8:48:13 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

When using get-credential with both the credential and Message parameter, Get-Credential cmdlet displays the appropriate credential window, but fails to return an object, instead throws error "Parameter set cannot be resolved using the specified named parameters"

G:\>$psversiontable

Name                         Value
----                         -----
PSVersion                     3.0
WSManStackVersion             3.0
SerializationVersion         1.1.0.1
CLRVersion                     4.0.30319.18034
BuildVersion                 6.2.9200.16481
PSCompatibleVersions         {1.0, 2.0, 3.0}
PSRemotingProtocolVersion     2.2
Details
Sign in to post a comment.
Posted by mhmhmhmh on 7/16/2013 at 10:26 AM
I fully agree with Bob McCoy.
Posted by Bob McCoy on 6/12/2013 at 9:17 AM
Those are different parameter sets. If you check help get-credential -full, you will note that there are two possible parameter sets. And -Credential and -Message are in DIFFERENT paramater sets. They cannot be mixed. By design.
Sign in to post a workaround.