> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/password-protection/advanced-help/powershell-reference/import-bannedwords.md).

# Import-BannedWords

## SYNOPSIS

Imports a file containing new line-separated words into the banned word store

## SYNTAX

```
Import-BannedWords [-Filename] <String> [[-BatchSize] <Int32>] [<CommonParameters>]
```

## DESCRIPTION

The Import-BannedWords cmdlet will import a file containing new line-separated words into the banned word store. Each line read from the file will have the normalization rules applied to it before being committed to the store.

## EXAMPLES

### Example 1

```powershell
PS C:\> Import-BannedWords -Filename "D:\password-protection\english-dictionary.txt"
```

This example shows how to import a file of words

### Example 2

```powershell
PS C:\> Import-BannedWords -Filename "D:\password-protection\english-dictionary.txt" -BatchSize 50000000
```

To increase speed when importing a large file when additional memory is available, you can specify a larger batch size

## PARAMETERS

### -BatchSize

Specifies how many lines to read from the file before committing them to disk.

In order to minimize the impact of memory usage when importing words, the words are read from the file and committed to the store in batches of this size. The larger the batch size, the faster the import, but the more memory is used. If left unspecified, the default value of 5,000,000 is used which provides an adequate balance of memory usage and speed.

```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 5,000,000
Accept pipeline input: False
Accept wildcard characters: False
```

### -Filename

The name of the file containing the words to add to the store.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

### System.Object

## NOTES

## RELATED LINKS


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.lithnet.io/password-protection/advanced-help/powershell-reference/import-bannedwords.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
