Changing the Location of KeePass Configuration Files

Depending on your KeePass package (installer or portable), the default settings location may resolve to the installation directory or the user profile. This article explains how to locate the configuration file and shows how to move it to any directory of your choice.

The KeePass Config File

KeePass stores all settings in the file KeePass.config.xml. The location of this config file depends on your setup.

Locating the KeePass Config File

Short Answer

If you installed KeePass from the installer package, your config file is located in %APPDATA%\KeePass. If you installed KeePass from the portable ZIP package, your config file is located in the same directory as KeePass.exe.

Long Answer

The config file is searched in the directory of the KeePass.exe executable first. Only if a global file is present and contains the setting <PreferUserConfiguration>true</PreferUserConfiguration> does KeePass process per-user (local) configuration files. The KeePass installer package sets <PreferUserConfiguration> to true. The portable package does not contain a configuration file, so <PreferUserConfiguration> defaults to false. Per-user configuration files are stored in %APPDATA%\KeePass.

Changing the Location of the KeePass Config File

To specify an alternative location for the config file start KeePass from a shortcut with the -cfg-local command-line parameter. Example:

D:\Tools\KeePass\KeePass.exe -cfg-local:"d:\Data\Programconfig\KeePass\Machine1\KeePass.config.xml"

References

Comments

Related Posts

Beautiful Slide Decks from Markdown: Presenting with Slidev

Beautiful Slide Decks from Markdown: Presenting with Slidev
Would you like to get away from PowerPoint and author slide decks in Markdown? Then Slidev may be just what you’re looking for. It’s a web app for presentations. The fact that it’s geared towards developers shouldn’t put you off. After all, who isn’t a developer these days, with AI? Slidev comes with the beautiful Tahta themes and supports features like syntax highlighting and animations. Export options to PDF and PPTX allow for easy sharing. This article shows how to get started.
Applications

Fixing VS Code UI Unresponsiveness Caused by GitHub Copilot Extension

Fixing VS Code UI Unresponsiveness Caused by GitHub Copilot Extension
This article shows a simple solution to a problem that doesn’t seem to be adequately documented: VS Code UI lags, freezes, and delays caused by the GitHub Copilot extension. Problem: VS Code UI Becoming Slow Having worked on a Python project for a while, I noticed that VS Code’s UI was frequently freezing for seconds at a time. This was happening in various places of the UI: the editor itself but also in the GitHub Copilot Chat window. Copilot also seemed to be taking more and more time getting ready to answer, and the extension-host process would fully saturate one CPU core for long periods of time.
Applications

Latest Posts

Beautiful Slide Decks from Markdown: Presenting with Slidev

Beautiful Slide Decks from Markdown: Presenting with Slidev
Would you like to get away from PowerPoint and author slide decks in Markdown? Then Slidev may be just what you’re looking for. It’s a web app for presentations. The fact that it’s geared towards developers shouldn’t put you off. After all, who isn’t a developer these days, with AI? Slidev comes with the beautiful Tahta themes and supports features like syntax highlighting and animations. Export options to PDF and PPTX allow for easy sharing. This article shows how to get started.
Applications