Skip to main content
Question

pgAdmin credential automation

  • May 4, 2026
  • 4 replies
  • 66 views

Forum|alt.badge.img+7

Hi,

Has anyone successfully implemented automated credential injection for the pgAdmin application?

There are no usable keyboard shortcuts, and TAB navigation doesn’t allow selecting “Add New Server”.

I also tried simulating key sequences (Alt → Right Arrow → Enter → Enter → Enter), but it doesn’t open the “Register Server” window. AutoIt-based automation attempts haven’t worked either.

If anyone has found a way to automate this, please let me know.

4 replies

Forum|alt.badge.img+14

Try this out, this will open the Register Server dialog box in PGAdmin 4

[TaskSequence1]
SequenceDelay=10000
AppWindowTitle="pgAdmin 4"
SendKeys="+!b"

[TaskSequence2]
AppWindowTitle="pgAdmin 4"
SendKeys="+^{F}"

[TaskSequence3]
SendKeys=server{TAB}{ENTER}

 


Forum|alt.badge.img+7
  • Author
  • Apprentice
  • May 6, 2026

Try this out, this will open the Register Server dialog box in PGAdmin 4

[TaskSequence1]
SequenceDelay=10000
AppWindowTitle="pgAdmin 4"
SendKeys="+!b"

[TaskSequence2]
AppWindowTitle="pgAdmin 4"
SendKeys="+^{F}"

[TaskSequence3]
SendKeys=server{TAB}{ENTER}

 

I tried this approach but after registering a server all the details get saved and remain under the Servers list. As a workaround, I added a custom keyboard shortcut by editing one of pgAdmin's JavaScript files that selects the saved server, which triggers a popup where the password can be injected


Forum|alt.badge.img+14

Another option you can try is to create a launcher script, which will first delete the cache file (pgadmin4.db) before launching the pgadmin4.exe


  • Apprentice
  • May 7, 2026
Another alternative to PostgreSQL is to use the DBeaver Community database manager, which can replace several other database management systems.