Lithnet Password Protection for AD
Request a quote for supportDownloads
v1.0 - LPP
v1.0 - LPP
  • About Lithnet Password Protection
    • How does Password Protection help my organisation
    • Enterprise Support
  • Installation
    • Getting Started
    • Installation of Password Protection
    • Creating a new store
      • Understanding the store
    • Configure the password group policy
    • Testing the password filter
    • Audit existing passwords
    • Event logging and reporting
  • Configuration
    • Configuring a length based complexity policy
    • Configuring a points based complexity policy
  • Help & Support
    • Normalization Rules
  • Advanced Help
    • Powershell reference
      • Add-BannedWord
      • Add-CompromisedPassword
      • Get-PasswordFilterResult
      • Import-BannedWordHashes
      • Import-BannedWords
      • Import-CompromisedPasswordHashes
      • Import-CompromisedPasswords
      • Open-Store
      • Remove-BannedWord
      • Remove-CompromisedPassword
      • Test-IsADUserPasswordCompromised
      • Test-IsBannedWord
      • Test-IsCompromisedPassword
Powered by GitBook
On this page
  • Syntax
  • Parameters
  • Return value
  • Examples
  1. Advanced Help
  2. Powershell reference

Test-IsBannedWord

PreviousTest-IsADUserPasswordCompromisedNextTest-IsCompromisedPassword

Last updated 2 years ago

The Test-IsBannedWord cmdlet checks to see if a specified string matches a value in the banned word store. The are applied to the string and the resulting value is checked against the store.

Syntax

Test-IsBannedWord -Value <string>

Test-IsBannedWord -Hash <byte[]>

Test-IsBannedWord -SecureString <SecureString>

Parameters

Value

Required. The string to test. are applied to this string before it is checked against the store

Hash

Required. A binary hash to test. A hash cannot be normalized, so it is tested as-is.

SecureString

Required. The string to test as a SecureString. are applied to this string before it is checked against the store

Return value

The cmdlet returns a boolean value indicating whether the input string or hash matches a value in the banned word store.

Examples

# Add a word to the store
PS> Add-BannedWord -Value password

# Test the exact word and ensure it is found
PS> Test-IsBannedWord -Value password
True

# Test a modification of the banned word, and ensure it is found
PS> Test-IsBannedWord -Value P@ssw0rd!
True

# Prompt for a banned word to test
PS> Test-IsBannedWord -SecureString (Read-Host -Prompt "Enter the banned word to test" -AsSecureString)
normalization rules
Normalization rules
Normalization rules