Lithnet Password Protection for AD
Request a quote for supportDownloads
v1.1
v1.1
  • Home
    • About Lithnet Password Protection
  • Setup
    • Getting started
    • Downloads
    • Setup requirements
    • Installation
    • Creating a new store
    • Load compromised passwords into the store
    • Configure group policy
    • Testing the password filter
  • Auditing
    • Audit existing passwords
  • Help & Support
    • Testing the password filter
    • Troubleshooting steps
    • Frequently asked questions
    • Getting support
    • Change log
  • Advanced Help
    • Powershell reference
      • Add-BannedWord
      • Add-CompromisedPassword
      • Get-PasswordFilterConfig
      • Get-PasswordFilterPolicy
      • Get-PasswordFilterResult
      • Import-BannedWordHashes
      • Import-BannedWords
      • Import-CompromisedPasswordHashes
      • Import-CompromisedPasswords
      • Open-Store
      • Remove-BannedWord
      • Remove-CompromisedPassword
      • Set-PasswordFilterConfig
      • Sync-HashesFromHibp
      • Test-IsADUserPasswordCompromised
      • Test-IsBannedWord
      • Test-IsCompromisedPassword
    • Normalization Rules
    • Event logging and reporting
    • Configuring a length based complexity policy
    • Configuring a points based complexity policy
    • Understanding the store
Powered by GitBook
On this page
  • SYNOPSIS
  • SYNTAX
  • DESCRIPTION
  • EXAMPLES
  • Example 1
  • Example 2
  • PARAMETERS
  • -BatchSize
  • -Filename
  • CommonParameters
  • INPUTS
  • System.String
  • OUTPUTS
  • System.Object
  • NOTES
  • RELATED LINKS
  1. Advanced Help
  2. Powershell reference

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

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

This example shows how to import a file of words

Example 2

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.

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.

Type: String
Parameter Sets: (All)
Aliases:

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

CommonParameters

INPUTS

System.String

OUTPUTS

System.Object

NOTES

RELATED LINKS

PreviousImport-BannedWordHashesNextImport-CompromisedPasswordHashes

Last updated 2 years ago

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see .

about_CommonParameters