PowerShell Help – PassGen
This PowerShell module contains 2 cmdlets Get-Password and Get-ComplexPassword
NAME
Get-Password
SYNOPSIS
This cmdlet is used to randomly generate passwords.
SYNTAX
Get-Password [[-Count] <Int32>] [[-Length] <Int32>] [-Randomize] [-SpecChars] [<CommonParameters>]
DESCRIPTION
This cmdlet is used to randomly generate passwords of a given length (default/minimum 8 characters)
PARAMETERS
-Count <Int32>
The number of passwords to generate
Required? false
Default value 1
-Length <Int32>
The character length of the passwords to be generated (minimum 8)
Required? false
Default value 8
-Randomize [<SwitchParameter>]
Randomize the order of the password characters by default the format is UC Letter, LC Letters, Numbers, [SpecChars]
Required? false
Default Value? false
-SpecChars [<SwitchParameter>]
Adds in special character from the following ()~!@&*-+=\{}#$%[]?/
Required? false
Default value false
EXAMPLES
— 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
——-
NAME
Get-ComplexPassword
SYNOPSIS
This cmdlet is used to randomly generate passwords.
SYNTAX
Get-ComplexPassword [[-Count] <Int32>] [[-Length] <Int32>] [[-Randomize] <Boolean>] [[-SpecChars] <Boolean>] [<CommonParameters>]
DESCRIPTION
This cmdlet 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
Default value 1
-Length <Int32>
The character length of the passwords to be generated (minimum 8)
Required? false
Default value 15
-Randomize <Boolean>
Randomize the order of the password characters by default the format is UC Letter, LC Letters, Numbers
Required? false
Default value True
-SpecChars <Boolean>
Adds in special character from the following ()~!@&*-+=\{}#$%[]?/
Required? false
Default value True
— EXAMPLE 1 —
PS C:\>Get-ComplexPassword
j}8?b4iet7E]CXa~!f6H
Randomly generates 1 password at the default length of 15 characters with special characters, randomized
— EXAMPLE 2 —
PS C:\>Get-ComplexPassword -Count 5 -Length 15 -Randomize
0?jM{sc9DL4bXtw]6i
tI=o&Tjdn10-r7Ev8G
Jl\h2p4TYn9V7iar?!
v3KnTWOt4+h-cau8{7
pULuc]J3Mz5n&)27wt
Randomly generates 5 passwords each with a length of 15 characters, with special characters & randomizes it
——