Set-RDMForbiddenPassword
Synopsis
Set the forbidden password list.
Syntax
__AllParameterSets
Set-RDMForbiddenPassword [-Passwords] <string[]> [-ForcePromptAnswer <DialogResult[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]Description
Set the forbidden password list for the current workspace. Requires workspace settings permission.
Examples
Example 1
PS C:\> $passwords = @("password", "123456", "admin")
PS C:\> Set-RDMForbiddenPassword -Passwords $passwordsSets the forbidden password list with three passwords.
Example 2
Retrieves the current list, adds a new forbidden password, and saves the updated list.
Example 3
Retrieves the list, removes a specific password using PowerShell filtering, and saves the updated list.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
-ForcePromptAnswer
Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:
Yes: Accept the prompt. Cover the OK and Automatic value.
No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.
Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.
-Passwords
Array of forbidden passwords to set.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
System.String
Forbidden passwords as strings.
System.String[]
Notes
For more information, type "Get-Help Set-RDMForbiddenPassword -detailed". For technical information, type "Get-Help Set-RDMForbiddenPassword -full".
Last updated
Was this helpful?