In this question I saw that you can use command key to store credentials and then just run a command like mstsc /v:servername
to connect to it without typing anything.
Additionally, you can delete it using the /delete
switch of cmdkey
...would I be able to make sure when I log out for the day the credentials are gone?
Is this at all safe? Or is it more like ssh-agent
where the key is held in memory for a specified period of time? Or is this stored on disk and I should use something like cipher to encrypt the folder before use?