Skip to content

Get-Credential with no parameters prompts for user/password twice #2306

@lzybkr

Description

@lzybkr

Steps to reproduce

Get-Credential

Expected behavior

PS> Get-Credential

Windows PowerShell credential request.
User: bar
Password for user bar: ********

UserName                     Password
--------                     --------
bar      System.Security.SecureString

Actual behavior

PS> Get-Credential

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
User: foo
Password for user foo: ***


Windows PowerShell credential request.
User: bar
Password for user bar: ********


UserName                     Password
--------                     --------
bar      System.Security.SecureString

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSRemotingProtocolVersion      2.3
CLRVersion
BuildVersion                   3.0.0.0
WSManStackVersion              3.0
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
SerializationVersion           1.1.0.1
GitCommitId                    v6.0.0-alpha.10-10-g87f6e8d04086da21093243acf9c6e11998e02ac8-dirty

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productWG-Cmdletsgeneral cmdlet issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions