< Back

Get-Password

Sat Jan 18, 2020 6:38 pm

NAME Get-Password



SYNOPSIS

This commandlet is used to randomly generate passwords.





SYNTAX

Get-Password [[-Count] <Int32>] [[-Length] <Int32>] [-Randomize] [-SpecChars] [<CommonParameters>]





DESCRIPTION

This commandlet is used to randomly generate passwords.



Randomly generates passwords of a given length (default/minimum 8 characters)





PARAMETERS

-Count <Int32>

The number of passwords to generate



Required? false

Position? 1

Default value 1

Accept pipeline input? false

Accept wildcard characters? false



-Length <Int32>

The character length of the passwords to be generated (minimum 8)



Required? false

Position? 2

Default value 8

Accept pipeline input? false

Accept wildcard characters? false



-Randomize [<SwitchParameter>]

Randomize the order of the password characters

by default the format is UC Letter, LC Letters, Numbers, [SpecChars]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-SpecChars [<SwitchParameter>]

Adds in special character from the following ()~!@&*-+=\\{}#$%[]?/



Required? false

Position? named

Default value False

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



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



PS C:\\>Get-Password



Pstz2470



Randomly generates 1 password at the default length of 8 characters no special characters not randomized (UC

Letter, LC Letters, Numbers)









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



PS C:\\>Get-Password -Count 5 -Length 15 -Randomize



c27yt3nkbri9pYo

k7bfvy4u98ilSad

ixh7O6mpge08uls

p8m1oIgewin0v4k

uof4gy2b5emHlx1



Randomly generates 5 passwords each with a length of 15 characters & randomizes it











RELATED LINKS

http://www.f-e-a-r.co.uk