| document type | cmdlet |
|---|---|
| external help file | helium-Help.xml |
| HelpUri | https://github.com/Skatterbrainz/helium/blob/master/docs/New-RandomPassword.md |
| Locale | en-US |
| Module Name | helium |
| ms.date | 05/11/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | New-RandomPassword |
Creates a new random password.
New-RandomPassword [[-pwdLength] <Int32>] [-Strong] [-useCapitals] [-useNumbers] [-useSymbols]
[-pwdCount <Int32>] [-OutputFormat <String>] [-BaseURL <String>] [<CommonParameters>]
This cmdlet has the following aliases, {{Insert list of aliases}}
Generates a random password using the DinoPass API.
New-RandomPassword -pwdLength 12 -useCapitals -useNumbers
Generates a 12-character random password with capital letters and numbers.
New-RandomPassword -Strong
Generates a strong random password using the DinoPass strong endpoint.
New-RandomPassword -pwdCount 5 -OutputFormat json
Generates 5 random passwords and outputs them in JSON format.
New-RandomPassword -pwdLength 20 -useCapitals -useNumbers -useSymbols
Generates a 20-character random password with capital letters, numbers, and symbols.
Optional. Length of the password. Must be between 7 and 20.
Type: System.Int32
DefaultValue: 16
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. If specified, generates a strong password.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. If specified, includes capital letters in custom password mode.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. If specified, includes numbers in custom password mode.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. If specified, includes symbols in custom password mode.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. Number of passwords to generate.
Type: System.Int32
DefaultValue: 1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional.
Output format. Valid values are text and json.
Type: System.String
DefaultValue: 'text'
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: [text, json]
HelpMessage: ''Optional. Base URL of the DinoPass API endpoint.
Type: System.String
DefaultValue: 'http://www.dinopass.com/password'
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''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.
Returns the generated password content.
When -OutputFormat json is used, returns JSON content from the API.
See API reference at https://www.dinopass.com/api for more information.