< Back

Get-StrongPassword

Mon Jan 13, 2020 6:34 am

NAME Get-StrongPassword



SYNOPSIS

Generates a strong password





SYNTAX

Get-StrongPassword [-Length <int>] [-NumberOfSpecialCharacters <int>] [<CommonParameters>]





DESCRIPTION

Generates a strong password based on the parameters provided





PARAMETERS

-Length <int>

Length in Characters for the generated password to be.



Required? false

Position? named

Default value 10

Accept pipeline input? false

Accept wildcard characters? false



-NumberOfSpecialCharacters <int>

Number of special characters to include in the password, must be less than the length of the password



Required? false

Position? named

Default value 3

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String





NOTES







---------- EXAMPLE 1 ----------



PS C:\\> Get-StrongPassword



Generates a password 10 characters long with 3 special characters



QTJ(T?wwe)

---------- EXAMPLE 2 ----------



PS C:\\> Get-StrongPassword -Length 20 -NumberOfSpecialCharacters 5



Generates a password 20 characters long with 5 special characters



zPN>C%.f/(l1aGq)n3Ze



RELATED LINKS

Online Version https://github.com/davotronic5000/Power ... ngPassword