For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RDMForbiddenPasswordList

Synopsis

Update a forbidden password list.

Syntax

InputObject

Set-RDMForbiddenPasswordList -InputObject <PSForbiddenPasswordList> [-NewName <string>]
 [-Password <PSPassword[]>] [-VerificationMode <ForbiddenPasswordVerificationMode>]
 [-CaseSensitive] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Name

Set-RDMForbiddenPasswordList -Name <string> [-NewName <string>] [-Password <PSPassword[]>]
 [-VerificationMode <ForbiddenPasswordVerificationMode>] [-CaseSensitive]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Update an existing named forbidden password list in the current workspace, identified by its name (or piped from Get-RDMForbiddenPasswordList). Only the supplied properties are changed; -Password replaces the whole list of passwords, and -NewName renames the list. When a list is piped in, its state is applied and can still be overridden by the explicit parameters. Requires system settings edit permission.

Examples

Example 1

Changes the match mode of the list named 'Weak', leaving its passwords and case sensitivity untouched.

Example 2

Renames the list 'Weak' to 'Weak passwords'.

Example 3

Retrieves the list named 'Weak', appends a password, and saves the change through the pipeline.

Example 4

Pipes the list named 'Weak' and overrides its match mode while keeping its other properties.

Example 5

Removes the password 'password123' from every forbidden password list.

Parameters

-CaseSensitive

Match the forbidden passwords case-sensitively.

-Confirm

Prompts 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.

-InputObject

Forbidden password list to update, obtained from Get-RDMForbiddenPasswordList.

-Name

Name of the forbidden password list to update. Matching is case-insensitive.

-NewName

New name for the list. Renaming replaces the stored list under the new name.

-Password

Replaces the passwords of the list, as plain strings or secure strings.

-VerificationMode

Match mode for this list: Contains or Equals.

-WhatIf

Shows what would happen if the cmdlet were to run. The cmdlet does 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

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSForbiddenPasswordList

Forbidden password list to update, obtained from Get-RDMForbiddenPasswordList.

Notes

For more information, type "Get-Help Set-RDMForbiddenPasswordList -detailed". For technical information, type "Get-Help Set-RDMForbiddenPasswordList -full".

Last updated

Was this helpful?