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
  • PARAMETERS
  • -BatchSize
  • -Filename
  • -Sorted
  • CommonParameters
  • INPUTS
  • System.String
  • OUTPUTS
  • System.Object
  • NOTES
  • RELATED LINKS
  1. Advanced Help
  2. Powershell reference

Import-BannedWordHashes

SYNOPSIS

Imports a set of NTLM hashes of banned words into the store

SYNTAX

Import-BannedWordHashes [-Filename] <String> [[-Sorted] <Boolean>] [[-BatchSize] <Int32>] [<CommonParameters>]

DESCRIPTION

The Import-BannedWordHashes cmdlet will import a file containing newline-separated NTLM hashes into the banned word store.

EXAMPLES

Example 1

PS C:\> Import-BannedWordHashes -Filename "D:\password-protection\banned-word-hashes.txt"

This example imports the hashes contained in the file "D:\password-protection\banned-word-hashes.txt" into the store.

PARAMETERS

-BatchSize

Specifies how many hashes to read from an unsorted file before committing to disk. This parameter has no effect on a sorted file.

Type: Int32
Parameter Sets: (All)
Aliases:

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

-Filename

The of the file containing the NTLM hashes. Each hash should be in hex format, be 32 characters in length, and each record must appear on a new line. The hash can optionally end with a colon and anything after the colon character is ignored.

Type: String
Parameter Sets: (All)
Aliases:

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

-Sorted

A boolean value indicating if the hashes in the file are sorted in ascending order or not. The cmdlet will optimize the type of import it performs based on this parameter. A sorted file will allow a much faster import of data into the store. However, there is a significant penalty if you specify that the file is sorted when it is not. If this parameter is omitted, the cmdlet will guess which algorithm to use by reading the first 1000 lines of the file. If those first 1000 lines are all in order, a sorted import will be performed.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

INPUTS

System.String

OUTPUTS

System.Object

NOTES

The following list shows the allowed formats. The hashes are not case sensitive.

8846f7eaee8fb117ad06bdd830b7586c 5835048ce94ad0564e29a924a03510ef:123 e22e04519aa757d12f1219c4f31252f4:3 e22e04519aa757d12f1219c4f31252f4:

RELATED LINKS

PreviousGet-PasswordFilterResultNextImport-BannedWords

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