2023-06-30 13:47:33 +01:00
|
|
|
# cmdkey
|
|
|
|
|
|
|
|
> Create, show, and delete stored user names and passwords.
|
2023-10-26 19:29:28 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cmdkey>.
|
2023-06-30 13:47:33 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List all user credentials:
|
2023-06-30 13:47:33 +01:00
|
|
|
|
|
|
|
`cmdkey /list`
|
|
|
|
|
|
|
|
- Store credentials for a user that accesses a server:
|
|
|
|
|
|
|
|
`cmdkey /add:{{server_name}} /user:{{user_name}}`
|
|
|
|
|
|
|
|
- Delete credentials for a specific target:
|
|
|
|
|
2023-10-26 10:55:16 +01:00
|
|
|
`cmdkey /delete {{target_name}}`
|