Add-CompromisedPassword

SYNOPSIS

Adds a compromised password to the store

SYNTAX

String (Default)

Add-CompromisedPassword [-Value] <String> [<CommonParameters>]

SecureString

Add-CompromisedPassword [-SecureString] <SecureString> [<CommonParameters>]

DESCRIPTION

This cmdlet adds a string into the compromised password store. When the password filter is configured to check against compromised passwords, any password that is an exact match to this string will rejected.

EXAMPLES

Example 1

Add-CompromisedPassword -Value "password"

This example adds a single compromised password to the store

Example 2

This example prompts for a password to add to the compromised password store

PARAMETERS

-SecureString

The password to add to the compromised password store as a secure string

-Value

The password to add to the compromised password store

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.

INPUTS

System.String

System.Security.SecureString

OUTPUTS

NOTES

To import a file of compromised passwords, use the Import-CompromisedPassword cmdlet or the Import-CompromisedPasswordHashes cmdlets.

Last updated