UserName Parameter in New-StoredCredential does not store the username correctly.
MattHodge opened this issue · 1 comments
MattHodge commented
UserName Parameter in New-StoredCredential does not store the username correctly.
To replicate:
- Run the following
New-StoredCredential -Password mypassword -Persist ENTERPRISE -Target TestNewCred -Type GENERIC -UserName TestUser
- Run
Get-StoredCredential
and you will see a new credential was created but using the current username($env:Username)
instead of the credential specified with the UserName param
davotronic5000 commented
I have now put out release 1.1 which fixes this bug. There was some leftover code from testing causing this. Should be resolved now though.