Skip to content

Commit

Permalink
replaced non-ASCII hyphens on Invoke-GSUserOffboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Dec 29, 2019
1 parent 348f466 commit fb05118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PSGSuite/Public/Users/Invoke-GSUserOffboarding.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ function Invoke-GSUserOffboarding {
$Length = 15
)
$ascii = $null
for ($a = 33;$a le 126;$a++) {
for ($a = 33;$a -le 126;$a++) {
$ascii += ,[char][byte]$a
}
for ($loop = 1; $loop le $length; $loop++) {
for ($loop = 1; $loop -le $length; $loop++) {
$randomPassword += ($ascii | Get-Random)
}
return ([String]$randomPassword)
Expand Down

0 comments on commit fb05118

Please sign in to comment.