> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/command-centre-client/getting-started/logon/preventing-context-specific-passwords.md).

# Preventing context specific passwords

### Introduction

As well as configuring 'Password Policy' restrictions on the **Operator Defaults** tab of the Command Centre Server Properties, sites can also control allowed passwords through the following two files that are pre-installed with Command Centre in `C:\Program Files (x86)\Gallagher\Command Centre\Bin`:

* **DisallowedPasswords.txt** contains a list of commonly used passwords which should be avoided, therefore are not allowed
* **ContextSpecificPasswords.txt** is initially empty but can be edited to contain a list of strings that should not be included in any password, (e.g. product names, company names). The list is case insensitive. **For example:**

  If *gallagher* is in this list, any word containing *gallagher* will not be allowed as a password; *Gallagher*, *gallagher*, *gallagher1!*

  **Note:** The maximum file size supported is 10MB.

### Procedure

To add to the list in either the **DisallowedPasswords.txt** or **ContextSpecificPasswords.txt** file:

1. Path your way to `C:\Program Files (x86)\Gallagher\Command Centre\Bin`
2. **Right click** on Notepad, and select **More** > **Run as administrator**.

   ![](https://2455150842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6UYAoyykM6nimMN9yss%2Fuploads%2Fgit-blob-f58782ec42478b27f5342cec72d6f4b31a8e3069%2Frunasadministrator.png?alt=media)

   Note: If Windows User Account Control is enabled, you will be prompted with the message: *"Do you want to allow the following program from an unknown publisher to make changes to this computer?"* Click the **Yes** button.
3. In Notepad, select **File** from the menu bar, then **Open…**
4. Path your way to `C:\Program Files (x86)\Gallagher\Command Centre\Bin` and select either the **DisallowedPasswords.txt** or **ContextSpecificPasswords.txt** file.

   ![](https://2455150842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6UYAoyykM6nimMN9yss%2Fuploads%2Fgit-blob-cc950804f8185b052587a956e0238bfb47929095%2Fopencontextspecificpasswordsfile.png?alt=media)
5. Click the **Open** button.
6. Make changes as necessary.
7. Select **File** from the menu bar, then **Save**.

   **Note:** Restarting the Command Centre service may be needed for the changes to take effect.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/command-centre-client/getting-started/logon/preventing-context-specific-passwords.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
