New-RDMStandalonePassword

Synopsis

Create a new random password.

Syntax

__AllParameterSets

New-RDMStandalonePassword [-Mode] <PasswordGeneratorMode> [<CommonParameters>]

Description

Create a new random password. Usable in RDM, DS or Hub workflows. Passphrase mode does not support custom dictionaries.

Examples

Example 1

PS C:\> $pwd = New-RDMStandalonePassword -Mode Default -MinimumLength 16 -MinimumDigit 2

Generate a random password with default mode (minimum 16 characters, at least 2 digits).

Example 2

PS C:\> $pwd = New-RDMStandalonePassword -Mode Strong

Generate a strong random password with default settings.

Example 3

PS C:\> $pwd = New-RDMStandalonePassword -Mode Passphrase -WordCount 6 -Dictionary French

Generate a passphrase with 6 French words separated by hyphens.

Example 4

PS C:\> $pwd = New-RDMStandalonePassword -Mode Pattern -Pattern "uuullldddd" -Shuffle

Generate a password from pattern (3 uppercase, 3 lowercase, 4 digits) and shuffle the result

Example 5

PS C:\> $pwd = New-RDMStandalonePassword -Mode SpecifiedSettings -Length 20 -Digit 4 -Uppercase 4 -Lowercase 8 -Special 4

Generate a password with exact character counts (20 total: 4 digits, 4 uppercase, 8 lowercase, 4 special).

Example 6

PS C:\> $pwd = New-RDMStandalonePassword -Mode HumanReadable -Syllables 3 -Digit 2 -Symbols 1

Generate a human-readable password with 3 syllables, 2 numbers, and 1 symbol.

Example 7

PS C:\> $pwd = New-RDMStandalonePassword -Mode Pronounceable -MinimumLength 12 -CaseMode MixedCase

Generate a pronounceable password (12 characters) with mixed case.

Parameters

-Mode

Type: System.Nullable`1[Devolutions.RemoteDesktopManager.PasswordGeneratorMode]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.

Notes

For more information, type "Get-Help New-RDMStandalonePassword -detailed". For technical information, type "Get-Help New-RDMStandalonePassword -full".

Devolutions Forum logo Partagez vos commentaires