Skip to content

Passwords with double quotes in it do not get passed to cmdkey properly #40

@xeropresence

Description

@xeropresence

I spent a bunch of time trying to figure out why this one RDP server would always prompt me for credentials while my other servers would work fine. I went down the rabbit hole of group policies and bunch of things before I was clued into this issue.

cmdkey.exe /generic:TERMSRV/ip /user:Administrator /pass:my"password

Doesn't work

I tried every variation of escaping stuff: wrap in quotes, triple quotes, double quotes, backslash, and up carrot and none of them would yield the correct password when queried via powershell

Install-Module -Name TUN.CredentialManager
Get-StoredCredential -Target 'TERMSRV/ip' -AsCredentialObject

Any ideas would be appreciated, if this can't be fixed I think a message box explaining why credentials are being prompted would be a good addition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions