Skip to main content
Apprentice
May 4, 2026
Question

pgAdmin credential automation

  • May 4, 2026
  • 4 replies
  • 89 views

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

    BeyondTrust Employee
    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}

     

    ChanithuAuthor
    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

    BeyondTrust Employee
    May 6, 2026

    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.