cmdkey seems to be unable to delete credentials by target name when said name includes a space and a dash -
I have a credential Test Credential - Iteration1
which I want to delete, but when I try
cmdkey /del:Test Credential - Iteration1
I get The command line parameters are incorrect.
since I guess it's taking the dash as a new parameter.
So far I've tried quotes, double quotes, 2 double quotes, escaping the dash with ^, enclosing with {} and none of those work:
cmdkey /del:Test Credential - Iteration1
cmdkey "/del:Test Credential - Iteration1"
cmdkey /del:"Test Credential - Iteration1"
cmdkey /del:{Test Credential - Iteration1}
cmdkey {/del:"Test Credential - Iteration1}
cmdkey /del:{LegacyGeneric:target=Test Credential - Iteration1}
How can I delete with cmdkey the credential Test Credential - Iteration1
EDIT:
I validated that the command works for names without spaces. I created TestCredential-Iteration1
and the following command deletes it successfuly
cmdkey /del:TestCredential-Iteration1
/delete
not/del
, i.ecmdkey /delete:FullyQualifiedDomainNameOfServer
. – Brandybrandyn/LIST
option? – GraybeardTarget: LegacyGeneric:target=Test Credential - Iteration1 Type: Generic User: 9a004233-bf81-4741-b640-74ed99553b5f Local machine persistence
– Moonstonecmdkey /del:"TestCredential-Iteration1"
– Decilecmdkey /del:"Test Credential - Iteration1"
– Moonstone