Search notes:

cmdkey.exe

Access the credential manager from the command line (i. e. cmd.exe, PowerShell etc.) to create, display and delete stored user names and passwords.

Show credentials

C:\> cmdkey /list

Error message: The parameter is incorrect.

C:\> cmdkey /add:git:https://github.com /user:ReneNyffenegger /pass:XXXXX

CMDKEY: The parameter is incorrect.
Use /generic: rather than /add:
C:> cmdkey /generic:git:https://github.com /user:ReneNyffenegger /pass:XXXX

CMDKEY: Credential added successfully.

Adding a github access token

A github access token can be added (in PowerShell) like so:
$githubToken='ghp_…'
cmdkey /generic:LegacyGeneric:target=git:https://github.com /user:ReneNyffenegger /pass:$githubToken
This entry can later be be deleted:
cmdkey /delete:LegacyGeneric:target=git:https://github.com

See also

Using mstsc.exe to store credentials for mstsc.exe to prevent Windows Defender CredentialManager Guard does not allow using saved credentials.
The GUI version of the credential manager can be started from the command line with
control /name Microsoft.CredentialManager
VaultCmd.exe

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1760297933, '216.73.216.88', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/dirs/Windows/System32/cmdkey_exe(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78