From fb05118824bc937bf8bda7efe9c2dd6dff4279ef Mon Sep 17 00:00:00 2001 From: Nate Ferrell Date: Sun, 29 Dec 2019 00:39:30 -0600 Subject: [PATCH] replaced non-ASCII hyphens on Invoke-GSUserOffboarding --- PSGSuite/Public/Users/Invoke-GSUserOffboarding.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PSGSuite/Public/Users/Invoke-GSUserOffboarding.ps1 b/PSGSuite/Public/Users/Invoke-GSUserOffboarding.ps1 index 39dd452b..d16573e9 100644 --- a/PSGSuite/Public/Users/Invoke-GSUserOffboarding.ps1 +++ b/PSGSuite/Public/Users/Invoke-GSUserOffboarding.ps1 @@ -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)