Skip to content

Commit 0f42886

Browse files
author
Robin Stolpe
committed
update
1 parent 7867911 commit 0f42886

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

GenerateRandomPassword/GenerateRandomPassword.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ function New-RSRandomPassword {
3232
Default is 3, shortest length is 1 and max length is 15.
3333
3434
.EXAMPLE
35-
New-RGRandomPassword
35+
New-RSRandomPassword
3636
# Returns a random password that are 12 characters long and contains 1 special character.
3737
3838
.EXAMPLE
39-
New-RGRandomPassword -Length 20 -SpecialCharacters 4
39+
New-RSRandomPassword -Length 20 -SpecialCharacters 4
4040
# Returns a random password that are 20 characters long and contains 4 special character.
4141
4242
.NOTES

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1-
# GeneratePassword
1+
# GenerateRandomPassword
2+
## SYNOPSIS
23
This module let you generate a random password where you can choose length and how many special characters you want it to include.
4+
5+
## DESCRIPTION
6+
This module generates and returns a random password that contains lower and upper letters, numbers and special characters.
7+
It can either generate one with the default options that are 12 characters long and contains 3 special characters,
8+
or you can decide how long the password should be and how many special characters it should contain.
9+
10+
11+
## Install
12+
Install for current user
13+
````
14+
Install-Module -Name GenerateRandomPassword -Scope CurrentUser -Force
15+
````
16+
17+
Install for all users
18+
````
19+
Install-Module -Name GenerateRandomPassword -Scope AllUsers -Force
20+
````
21+
22+
## Example
23+
````
24+
New-RSRandomPassword
25+
````
26+
Returns a random password that are 12 characters long and contains 1 special character.
27+
````
28+
New-RSRandomPassword -Length 20 -SpecialCharacters 4
29+
````
30+
Returns a random password that are 20 characters long and contains 4 special character.

0 commit comments

Comments
 (0)