Online Help > PowerShell Scripting

New-RDMRandomPassword

SYNOPSIS

Create a new random password

 

SYNTAX

New-RDMRandomPassword -Session [Session] <PSConnection> -TemplateName [TemplateName] <String> [<CommonParameters>]

 

DESCRIPTION

Create a new random password

 

PARAMETERS

  -Session <PSConnection>

Generate a random password with the password complexity of that session

 

  -TemplateName <String>

Generate a random password with the template settings.

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

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

 

EXAMPLE 1

PS C:\> $randomPassword = New-RDMRandomPassword

 

Generate a random password with the default settings

 

EXAMPLE 2

PS C:\> $randomPassword = New-RDMRandomPassword -TemplateName $templateName

 

Generate a random password with the template settings

 

EXAMPLE 3

PS C:\> $session = Get-RDMSession -Name MySession; $randomPassword = New-RDMRandomPassword -Session $session

 

Generate a random password with the password complexity of the session

 

RELATED LINKS