The `cmdkey` command in [[Windows]] is a command-line utility used to manage stored credentials. It allows users to create, list, and delete saved usernames and passwords for network resources, websites, and other services. This is useful for automating authentication to remote systems without repeatedly entering credentials. Interacts with [[Windows Credential Manager|Credential Manager in Windows]]. ## Examples To display a list of all user names and credentials that are stored, type: ``` cmdkey /list ``` To add a user name and password for user *Mikedan* to access computer *Server01* with the password *Kleo*, type: ``` cmdkey /add:server01 /user:mikedan /pass:Kleo ``` To add a user name and password for user *Mikedan* to access computer *Server01* and prompt for the password whenever Server01 is accessed, type: ``` cmdkey /add:server01 /user:mikedan ``` To delete a credential stored by remote access, type: ``` cmdkey /delete /ras ``` To delete a credential stored for *Server01*, type: ``` cmdkey /delete:server01 ``` # Source https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmdkey?source=docs