Test-IsBannedWord
Syntax
Test-IsBannedWord -Value <string>
Test-IsBannedWord -Hash <byte[]>
Test-IsBannedWord -SecureString <SecureString>Parameters
Return value
Examples
Last updated
Test-IsBannedWord -Value <string>
Test-IsBannedWord -Hash <byte[]>
Test-IsBannedWord -SecureString <SecureString>Last updated
# 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)