Skip to content

Instantly share code, notes, and snippets.

@jballe
Last active July 18, 2019 18:25
Show Gist options
  • Save jballe/68f75796089cafd0102de85a3e87e469 to your computer and use it in GitHub Desktop.
Save jballe/68f75796089cafd0102de85a3e87e469 to your computer and use it in GitHub Desktop.
KeePass URL overrides
cmd://cmd /c "cmdkey /generic:TERMSRV/{URL:RMVSCM} /user:{USERNAME} /pass:{PASSWORD} && mstsc /v:{URL:RMVSCM} && timeout /t 5 /nobreak && cmdkey /delete:TERMSRV/{URL:RMVSCM}"
cmd://cmd /c "echo Username:{REF:A@T:{USERNAME}}\{REF:U@T:{USERNAME}} && cmdkey /generic:TERMSRV/{URL:RMVSCM} /pass:{REF:P@T:{USERNAME}} /user:{REF:A@T:{USERNAME}}\{REF:U@T:{USERNAME}} && mstsc /v:{URL:RMVSCM} && timeout /t 1 /nobreak && cmdkey /delete:TERMSRV/{URL:RMVSCM}"
cmd://"C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe" -S {URL:RMVSCM} -U {USERNAME} -P {PASSWORD}
cmd://"C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe" -S {URL:HOST} -d {T-REPLACE-RX:;{URL:PATH};/;;} -U {USERNAME} -P {PASSWORD}
cmd://putty -ssh {USERNAME}@{URL:RMVSCM} {KEEAGENT:IDENTFILEOPT}
@jballe
Copy link
Author

jballe commented Jun 25, 2019

rdp: Starts Remote Desktop. I learned this from http://blog.bitcollectors.com/adam/2014/04/launching-rdp-keepass-2-x-auto-login/
rdps: Searches for another entry with same title as the username. Url of that other entry is used as domain (as I could not get it to work with the backslashes in username)
sql: Start SQL Studio Management and connects to specified server. I use a custom field for database name
ssh: Starts PuTTY with SSH key from KeeAgent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment