cmdkey
Create, show, and delete stored user names and passwords. More information: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmdkey.
-
Show a list of 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.exe /delete {{target_name}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.