HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cmdkey — Create, show, and delete stored user names and passwords. More information: <https://learn.microsoft

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createdeletecommandshowandcmdkeystoredcli
windows

Problem

How to use the cmdkey command: Create, show, and delete stored user names and passwords. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cmdkey>.

Solution

cmdkey — Create, show, and delete stored user names and passwords. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cmdkey>.

List all user credentials:
cmdkey /list


Store credentials for a user that accesses a server:
cmdkey /add:{{server_name}} /user:{{user_name}}


Delete credentials for a specific target:
cmdkey /delete {{target_name}}

Code Snippets

List all user credentials

cmdkey /list

Store credentials for a user that accesses a server

cmdkey /add:{{server_name}} /user:{{user_name}}

Delete credentials for a specific target

cmdkey /delete {{target_name}}

Context

tldr-pages: windows/cmdkey

Revisions (0)

No revisions yet.